Browse Source

隐藏404

Xiao_123 5 tháng trước cách đây
mục cha
commit
5a717d2f09
1 tập tin đã thay đổi với 12 bổ sung12 xóa
  1. 12 12
      src/router/modules/remaining.js

+ 12 - 12
src/router/modules/remaining.js

@@ -124,18 +124,18 @@ const remainingRouter = [
       }
     ]
   },
-  {
-    path: '/404',
-    name: '404Page',
-    component: () => import('@/views/404/index.vue'),
-    meta: {
-      title: '404'
-    }
-  },
-  {
-    path: '/:catchAll(.*)',
-    redirect: '/404'
-  }
+  // {
+  //   path: '/404',
+  //   name: '404Page',
+  //   component: () => import('@/views/404/index.vue'),
+  //   meta: {
+  //     title: '404'
+  //   }
+  // },
+  // {
+  //   path: '/:catchAll(.*)',
+  //   redirect: '/404'
+  // }
 ]
 setLoginType(remainingRouter, 'personalCommon') // 暂定:登录企业端不能访问personalCommon路由
 setLoginType(common, 'common') // common 没有身份,任何情况都能访问