feat: 菜单支持获取上级菜单列表(排除按钮)

This commit is contained in:
ray
2024-08-02 00:44:01 +08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -531,7 +531,7 @@ function handleRowClick(row: MenuVO) {
* @param menuId 菜单ID
*/
function handleOpenDialog(parentId?: number, menuId?: number) {
MenuAPI.getOptions()
MenuAPI.getOptions(true)
.then((data) => {
menuOptions.value = [{ value: 0, label: "顶级菜单", children: data }];
})