在根目录创建 vue.config.js文件
module.exports = {
publicPah: './' // 添加此项即可
}
在router index.js
const router = new VueRouter({
// mode: 'history', // 用hash模式
routes
})
在根目录创建 vue.config.js文件
module.exports = {
publicPah: './' // 添加此项即可
}
在router index.js
const router = new VueRouter({
// mode: 'history', // 用hash模式
routes
})
本文标题:vue-cli3 脚手架打包之后 index.html打开为空
本文链接:https://www.haomeiwen.com/subject/gjkltktx.html
网友评论