소스 검색

开启 history 模式

dusenyao 4 년 전
부모
커밋
10ad4e3d14
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/router/index.js

+ 1 - 1
src/router/index.js

@@ -35,7 +35,7 @@ const routes = [
 
 const createRouter = () =>
   new VueRouter({
-    // mode: 'history',
+    mode: 'history',
     scrollBehavior: () => ({ y: 0 }),
     routes
   });