vue-cli3 脚手架打包之后 index.html打开为空

2020-06-08  本文已影响0人  PharkiLL

在根目录创建 vue.config.js文件

module.exports = {
    publicPah: './' // 添加此项即可
    
    
}

在router index.js

const router = new VueRouter({
    // mode: 'history', // 用hash模式
    routes
})
上一篇 下一篇

猜你喜欢

热点阅读