소스 검색

修复有时候返回是404的bug2

JXDS18FUJT 2 년 전
부모
커밋
3f21eaafcd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/router/index.ts

+ 1 - 1
src/router/index.ts

@@ -55,7 +55,7 @@ for (const path in modules) {
 const routes: RouteRecordRaw[] = [
   {
     path:'/',
-    component:()=>import('./../views/home/index.vue')
+    redirect:'/home'
   },
   {
     path: '/about',