Browse Source

history 改hash

asd26269546 2 years ago
parent
commit
1e2e000fef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/router/router.js

+ 1 - 1
src/router/router.js

@@ -17,7 +17,7 @@ Vue.use(VueRouter);
 //创建路由
 export const createRouter = () =>
   new VueRouter({
-    mode: "history", // 去掉url中的#
+    mode: "hash", // 去掉url中的#
     scrollBehavior: () => ({
       y: 0,
     }),