- 博客(1)
- 收藏
- 关注
原创 【vue笔记】vue部署二级目录不显示
解决方法一: 在路由配置router文件夹--index.js文件中新增2句代码,jsc为你所需要配置的二级目录名: const router = new VueRouter({ mode: 'history', base: '/jsc/', // 这是二级路径 routes }) 解决方法二: 在vue.config.js中新增2句代码: const BASE_URL = process.env.NODE_ENV === 'production' ? '/jsc' :
2022-05-30 14:22:46
1174
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅