vue项目服务器部署后白屏

文件正常加载,也不报错就是白屏, 本地用nodejs启动没问题, 后来发现是路由策略history的问题,
const router = new VueRouter({
  mode: 'hash',
  // base: process.env.BASE_URL,
  routes
})
改为hash完美解决
posted @ 2022-05-23 14:48  带带派大星*  阅读(189)  评论(0)    收藏  举报