1:修改 config->index.js 文件
build:{
assetsPublicPath: './'
}
2:修改vue路由设置的模式:改为 hash模式
const router = new VueRouter({
mode: 'hash',
})
3:重新build
1:修改 config->index.js 文件
build:{
assetsPublicPath: './'
}
2:修改vue路由设置的模式:改为 hash模式
const router = new VueRouter({
mode: 'hash',
})
3:重新build