mart-admin/src/api/menu/index.ts
2021-02-24 00:27:24 +08:00

25 lines
800 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import request from '/@/utils/request.ts'
/**
* 后端控制菜单模拟json路径在 https://gitee.com/lyt-top/vue-admin-wonderful-images/tree/master/next/menu
* 后端控制路由isRequestRoutes 为 true则开启后端控制路由
*/
// 获取后端动态路由菜单(admin)
export function getMenuAdmin(params?: object) {
return request({
url: '/gitee/lyt-top/vue-admin-wonderful-images/raw/master/next/menu/adminMenu.json',
method: 'get',
params,
});
}
// 获取后端动态路由菜单(test)
export function getMenuTest(params?: object) {
return request({
// url: '/gitee/lyt-top/vue-admin-wonderful-images/raw/master/next/menu/testMenu.json',
url: '/src/api/menu/testMenu.json',
method: 'get',
params,
});
}