diff --git a/src/router/index.js b/src/router/index.js index cff0c09..282c887 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -183,7 +183,7 @@ export const asyncRoutes = [ export const anyRoutes = { path: '*', redirect: '/404', hidden: true } const createRouter = () => new Router({ - mode: 'hash', + mode: 'history', scrollBehavior: () => ({ y: 0 }), routes: constantRoutes })