From 78f7784f237ec8ef67c17700dffdcce557467ead Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Tue, 4 Jun 2024 09:07:23 +0800 Subject: [PATCH] router --- src/router/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/router/index.js b/src/router/index.js index cfbab10..81d0c1c 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -127,7 +127,8 @@ 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: "history", // 去掉url中的# + mode: "hash", scrollBehavior: () => ({ y: 0 }), routes: constantRoutes, });