菜单管理
This commit is contained in:
@@ -4,8 +4,9 @@ import type { Function } from "@/api/user/interface/function";
|
||||
|
||||
|
||||
// 获取资源
|
||||
export const getFunctionList = () => {
|
||||
return http.get<Function.ResFunction>(`/sysFunction/functionTree`)
|
||||
export const getFunctionList = (params:Function.ResFunction) => {
|
||||
const name = params.name || '';
|
||||
return http.get<Function.ResFunction>(`/sysFunction/getTree?keyword=${name}`)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user