Эх сурвалжийг харах

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

shizhongming 2 жил өмнө
parent
commit
4674222de3
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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: {