Explorar el Código

修复有时候返回是404的bug2

JXDS18FUJT hace 2 años
padre
commit
3f21eaafcd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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',