refactor: ♻️ 方法名修改优化

Former-commit-id: b7eba744e98af01599d737eef33b06d80fbda68a
This commit is contained in:
hxr committed 2023-10-14 23:58:17 +08:00
1 parent 0d8d3c7705
commit affe97428f
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ import { MenuQuery, MenuForm, MenuVO } from "@/api/menu/types";
import {
listMenus,
getMenuForm,
listMenuOptions,
getMenuOptions,
addMenu,
deleteMenu,
updateMenu,
@@ -91,7 +91,7 @@ function onRowClick(row: MenuVO) {
* @param menuId 菜单ID
*/
function openDialog(parentId?: number, menuId?: number) {
listMenuOptions()
getMenuOptions()
.then(({ data }) => {
menuOptions.value = [{ value: 0, label: "顶级菜单", children: data }];
})