1.找到vue.config.js 文件
module.exports = {
publicPath: './',
}
2.找到router文件下的 index.js
const router = new VueRouter({
// mode: 'history', //将此行注释
base: process.env.BASE_URL,
routes
})
1.找到vue.config.js 文件
module.exports = {
publicPath: './',
}
2.找到router文件下的 index.js
const router = new VueRouter({
// mode: 'history', //将此行注释
base: process.env.BASE_URL,
routes
})