소스 검색

history 改hash

asd26269546 2 년 전
부모
커밋
1e2e000fef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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,
     }),