diff --git a/admin-web/mock/admin.js b/admin-web/mock/admin.js index 4a9df2b0e..5fac79368 100644 --- a/admin-web/mock/admin.js +++ b/admin-web/mock/admin.js @@ -44,8 +44,8 @@ function getDictionaryText(req, res) { } export default { - 'GET /admin-api/admins/resource/admin_menu_tree': getAdminMenuAll, - 'GET /admin-api/admins/resource/admin_url_list': getAdminUrls, + 'GET /admin-api/admins/admin/menu_resource_tree': getAdminMenuAll, + 'GET /admin-api/admins/admin/url_resource_list': getAdminUrls, 'GET /admin-api/admins/resource/tree': getResourceTree, 'GET /admin-api/admins/role/page': getQueryRole, 'GET /admin-api/admins/admin/page': getQueryRole, diff --git a/admin-web/src/services/admin.js b/admin-web/src/services/admin.js index be01dffab..2aa104b4d 100644 --- a/admin-web/src/services/admin.js +++ b/admin-web/src/services/admin.js @@ -4,11 +4,11 @@ import request from '@/utils/request'; // auth export async function getAdminMenus() { - return request('/admin-api/admins/resource/admin_menu_tree'); + return request('/admin-api/admins/admin/menu_resource_tree'); } export async function getAdminUrls(params) { - return request(`/admin-api/admins/resource/admin_url_list?${stringify(params)}`); + return request(`/admin-api/admins/admin/url_resource_list?${stringify(params)}`); } // admin