projects/mescc/zjl #31

Merged
juzi merged 4 commits from projects/mescc/zjl into projects/mescc/develop 2024-06-04 09:09:28 +08:00
Showing only changes of commit 78f7784f23 - Show all commits

View File

@ -127,7 +127,8 @@ Router.prototype.push = function push(location) {
export default new Router({ export default new Router({
base: process.env.VUE_APP_APP_NAME ? process.env.VUE_APP_APP_NAME : "/", base: process.env.VUE_APP_APP_NAME ? process.env.VUE_APP_APP_NAME : "/",
mode: "history", // 去掉url中的# // mode: "history", // 去掉url中的#
mode: "hash",
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes, routes: constantRoutes,
}); });