module.exports = { publicPath: "/", chainWebpack: (config) => { config .plugin("html") .tap((args) => { args[0].title = "课程管理"; args[0].publicPath = "/static"; return args; }); }, devServer: { proxy: 'http://localhost:5500' } }
1 IndexXuan 2021-06-27 12:51:56 +08:00 via iPhone 你把生成的项目里 router.js 里的 base 改下,不接收 process.env.BASE_URL 不就行了,脑袋灵活些啊 |
![]() | 2 SystemLight OP @IndexXuan 非常感谢,之前看了好几遍 vue-router 的文档,真正实用的时候还是没有想到,属实是缺少经验 |