refactor: ♻️ 方法名修改优化

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

View File

@@ -8,7 +8,7 @@ import {
getRoleMenuIds,
updateRoleMenus,
} from "@/api/role";
import { listMenuOptions } from "@/api/menu";
import { getMenuOptions } from "@/api/menu";
import { RolePageVO, RoleForm, RoleQuery } from "@/api/role/types";
@@ -175,7 +175,7 @@ function openMenuDialog(row: RolePageVO) {
loading.value = true;
// 获取所有的菜单
listMenuOptions().then((response) => {
getMenuOptions().then((response) => {
menuList.value = response.data;
// 回显角色已拥有的菜单
getRoleMenuIds(roleId)