Vue项目路由加前缀

Vue项目路由加前缀

vue-cli3.0配置

1)静态资源前缀 vue.config.js /module.exports 配置 publicPath:“/前缀”
在这里插入图片描述
2)路由前缀 route/index.js export default new Router({ base:”/前缀" , })
在这里插入图片描述

参考文章:https://blog.csdn.net/qqjuanqq/article/details/131612705

猜你喜欢

转载自blog.csdn.net/weixin_42949219/article/details/133864020
今日推荐