// 修改 src\router\index.js
const createRouter = () => new Router({
// mode: 'history',
mode: 'hash',
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})
路由刷新404
最新推荐文章于 2024-08-12 17:09:58 发布
// 修改 src\router\index.js
const createRouter = () => new Router({
// mode: 'history',
mode: 'hash',
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})