1、vue-router配置
1)项目一:
export default new Router({
mode: 'history',
// base: process.env.BASE_URL_ROUTER,
base: '/zero-hl-web',
......
})
2)项目二:
export default new Router({
mode: 'history',
// base: process.env.BASE_URL_ROUTER,
base: '/zero-portal',
......
})
**2、nginx配置 **
1)项目1:
location /zero-hl-web {
alias D:/lanjianqing/hckj/system-center-main-fe/zero-hl-web;
try_files $uri $uri/ /zero-hl-web/index.html;
}
2)项目2:
location /zero-portal {
alias D:/lanjianqing/hckj/system-center-fe/zero-portal;
try_files $uri $uri/ /zero-portal/index.html;
}