赞
踩
myVueProject
:http://www.abc.com/myVueProjectrouter/index.js
下加mode
和base
:export default new Router({
mode:'history',
base:'myVueProject',
routers:[]
})
config/index.js
里找到build
,加上二级目录名:assetsPublicPath: '/myVueProject/'
npm run build
在配置文件的server
节点加上:
location ^~/myVueProject {
alias /www/wwwroot/www.abc.com/myVueProject;
try_files $uri $uri/ /myVueProject/index.html;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。