文章目录
引言
在项目中一个项目上存在多个子应用系统,对多个系统路径统一访问时用二级路由来区分对应的子应用,但是在开始的时候折腾了很久始终没得到解决。
解决方案
vue.config.js
具体的详情参见:vue cli
- 对应Dir配置
module.exports = {
/**
* You will need to set publicPath if you plan to deploy your site under a sub path,
* for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/,
* then publicPath should be set to "/bar/".
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: