项目场景: 前端项目打包时候遇到的问题 问题描述 打包完之后页面空白,需要修改router/index.js文件 const router = createRouter({ mode: "hash", history: createWebHashHistory(process.env.BASE_URL),修改后 // history: createWebHistory(process.env.BASE_URL), routes, }); 之前默认的是history,还是需要改模式