2022年6月23日

Vue项目打包后访问静态资源无法直接访问,路由无法跳转

摘要: 问题原因,打包之后访问路径错误,index.html打开是空白 解决方案 步骤1,修改使用路由方式 将路由从history换成hash const router = new VueRouter({ mode: "hash", base: process.env.BASE_URL, routes }) 阅读全文

posted @ 2022-06-23 23:45 铃之森 阅读(2617) 评论(0) 推荐(0) 编辑

导航