From 0e516879638e8608aa5f8cd262731c3951bacf4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E6=98=AD=E6=9C=9D?= <18394339404@163.com> Date: Fri, 26 Jul 2024 14:13:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D#?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })