lrf 1 year ago
parent
commit
84325ab1e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/router/guard.js

+ 1 - 1
src/router/guard.js

@@ -93,7 +93,7 @@ const routesRegister = (menus, defaultRoutes, router) => {
   const __def = 'Layout'
   const loadComponent = import.meta.glob('../views/**/*.vue')
   for (const route of menus) {
-    const { type, route_name, path, component, parent_id, i18n_code, type } = route
+    const { type, route_name, path, component, parent_id, i18n_code } = route
     // 检查路由是否已存在,存在跳过
     const hasRoute = defaultRoutes.find((f) => f.path === path)
     if (hasRoute) continue