使用nginx部署vue项目的时候出现资源都拿到,但是页面无内容的解决方法

532 阅读1分钟

设置routerbasepublicPath一致

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})
publicPath: process.env.BASE_URL