- 修改 url 地址,

pull/1/head
sin 2019-03-10 15:30:54 +08:00
parent eba89f3113
commit 6d93e6cec8
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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