调整角色管理页面接口

This commit is contained in:
YeMingfei666 2025-02-24 13:23:40 +08:00
parent 220332c0e5
commit d401bf442d
3 changed files with 3 additions and 3 deletions

View File

@ -126,7 +126,7 @@ export const constantRoutes: RouteRecordRaw[] = [
},
{
path: "role",
component: () => import("@/views/shop/role.vue"),
component: () => import("@/views/admim/system/role/index.vue"),
name: "shopRole",
meta: {
title: "角色管理",

View File

@ -94,7 +94,7 @@ function returnMenu(menu) {
}
//
async function getMenuPermOptions() {
let arr = await MenuAPI.getList();
let arr = await MenuAPI.getRoutes();
menuPermOptions.value = returnMenu(arr);
}
getMenuPermOptions();

View File

@ -383,7 +383,7 @@ function returnMenu(menu) {
//
async function getMenuPermOptions() {
let arr = await MenuAPI.getList({});
let arr = await MenuAPI.getRoutes();
menuPermOptions.value = returnMenu(arr);
}
getMenuPermOptions();