From f341ec7b3012939da2af368a0a7e647e3ddb8911 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 13 Sep 2023 12:24:52 +0800 Subject: [PATCH] update router mode --- 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 1d64f59b..ca26742b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -247,7 +247,7 @@ Router.prototype.push = function push(location) { export default new Router({ base: process.env.VUE_APP_APP_NAME ? process.env.VUE_APP_APP_NAME : "/", - mode: 'history', // 去掉url中的# + mode: 'hash', // 去掉url中的# scrollBehavior: () => ({y: 0}), routes: constantRoutes })