1.vue.config.js中设置

module.exports { publicPath'./' }

src/router.js中,干掉mode

2.export default new Router({

// mode: 'history'

)}

 posted on 2020-02-12 15:08  lansy  阅读(2193)  评论(0编辑  收藏  举报