Jelajahi Sumber

修复有时候返回是404的bug2

JXDS18FUJT 2 tahun lalu
induk
melakukan
3f21eaafcd
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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',