Webpack 配置上下文
const router = new VueRouter({
// routes
// mode: 'history',
// base: process.env.BASE_URL,
base: '/client/', //后端如果需要在tomcat-->webapps目录下创建新的文件夹,需要把router-->index.js文件中添加base:'/文件夹名/'
routes
})
...
原创
2021-11-19 14:15:32 ·
863 阅读 ·
0 评论