ソースを参照

404重定向到首页

rainwer 6 ヶ月 前
コミット
2115e5dd5e
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/router/index.js

+ 2 - 1
src/router/index.js

@@ -50,7 +50,8 @@ export const constantRouters = [{
 {
   path: "/:pathMatch(.*)*",
   component: () => import('@/views/error/404'),
-  hidden: true
+  hidden: true,
+  redirect: '/index'
 },
 {
   path: '/401',