Iview-admin: 2.5.0项目部署在子路径中,只改vue.config.js的BASE_URL会出现404页面,必须在改router/index.js

Created on 20 Feb 2019  ·  3Comments  ·  Source: iview/iview-admin

2.5.0项目部署在子路径中,只改vue.config.js的BASE_URL会出现404页面,必须在改router/index.js的const router = new Router({base:''}) 。 是因为我弄的有问题,还是就是这样,算不算一个小的bug或者不够友好,因为这样就得修改两个地方

All 3 comments

帮了大忙, 对vue不了解, 还以为要手动去改了, 但总感觉这问题大家都会遇到 一直翻issues, 终于翻到了

为什么这么久的, 重大的BUG, 作者没去改?

+1,配置vue.config.js的BASE_URL无效

Was this page helpful?
0 / 5 - 0 ratings