From 94193bc3a4a06f403c86aa9fd169a5bc73156619 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Tue, 2 Jan 2024 11:07:26 +0800 Subject: [PATCH] / --- src/router/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index ca18bb4..b55f79b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -203,8 +203,8 @@ Router.prototype.replace = function push(location) { }; export default new Router({ - // mode: "history", // 去掉url中的# - // base: "/", + mode: "history", // 去掉url中的# + base: "/", scrollBehavior: () => ({ y: 0 }), routes: constantRoutes, });