Explorar o código

fix(架构): 修复菜单加载未设置URL导致加载菜单失败的问题

shizhongming %!s(int64=2) %!d(string=hai) anos
pai
achega
4674222de3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/api/sys/menu.ts

+ 1 - 1
src/api/sys/menu.ts

@@ -40,7 +40,7 @@ export const getMenuList = async () => {
       compatibleIcon = 'ant-design:' + compatibleIcon;
     }
     const routeItem: RouteItem = {
-      path: url,
+      path: url || '',
       name: componentName || functionName,
       component,
       meta: {