This commit is contained in:
2026-04-28 18:40:07 +08:00
parent 69b25d2625
commit b5dbe9c351
9 changed files with 70 additions and 33 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export const authApi = {
/** 获取系统管理员列表(仅管理员可访问) */
sysAdmins() {
return api.post('/users/sysadmins', {})
return api.post('/admin/sysadmins', {})
},
/** 修改密码 */
+8
View File
@@ -95,6 +95,14 @@ export const api = {
return unwrapResponse(res)
},
/**
* POST JSON (原始格式,不包装 data 层)
*/
async postRaw(path, payload = {}) {
const res = await http.post(path, payload)
return unwrapResponse(res)
},
/**
* POST FormData(文件上传)
*/