Explorar el Código

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

shizhongming hace 2 años
padre
commit
4674222de3
Se han modificado 1 ficheros con 1 adiciones y 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: {