From a4f54ff09e5838a4bf00bd4136fb9ccab6084020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E9=98=B3?= Date: Tue, 17 Dec 2024 13:11:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Role.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/Role.ts b/src/api/Role.ts index 43e471d..1642bf8 100644 --- a/src/api/Role.ts +++ b/src/api/Role.ts @@ -18,7 +18,7 @@ export const getRoleDataAPI = (id: number) => Request("GET", `/role/${id}` export const getRoleListAPI = () => Request("GET", "/role"); // 获取指定角色的路由列表 -export const getRouteListAPI = (id: number) => Request("GET", `/role/route?id=${id}`); +export const getRouteListAPI = (id: number) => Request("GET", `/role/route/${id}`); // 给指定角色绑定路由 export const bindingRouteAPI = (id: number, ids: number[]) => Request("PATCH", `/role/bindingRoute/${id}`, { data: ids }); \ No newline at end of file