From 15bc7727b58bf9ca0c8f21702fa893daac232b8d Mon Sep 17 00:00:00 2001
From: hyb <kk_huangyangbo@163.com>
Date: Fri, 30 Jan 2026 07:18:51 +0000
Subject: [PATCH] perf: 接口自动化平台优化加载速度
---
测试组/Test_platform/Interface_automation/frontend/src/api/user.js | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletions(-)
diff --git "a/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js" "b/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js"
index 0042831..41b4d96 100644
--- "a/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js"
+++ "b/\346\265\213\350\257\225\347\273\204/Test_platform/Interface_automation/frontend/src/api/user.js"
@@ -10,11 +10,46 @@
Authorization: store.token
}
}).then(res => {
- // 密码修改成功后清除token和用户信息
store.token = null
store.user = null
store.name = null
store.id = null
return res.data
})
+}
+
+export function register(data) {
+ return axios({
+ url: '/api/user/register',
+ method: 'post',
+ data
+ }).then(res => {
+ return res.data
+ })
+}
+
+export function getUserApprovalList(params) {
+ return axios({
+ url: '/api/user/approval/',
+ method: 'get',
+ params,
+ headers: {
+ Authorization: store.token
+ }
+ }).then(res => {
+ return res.data
+ })
+}
+
+export function approveUser(userId, data) {
+ return axios({
+ url: `/api/user/approval/${userId}/approve/`,
+ method: 'post',
+ data,
+ headers: {
+ Authorization: store.token
+ }
+ }).then(res => {
+ return res.data
+ })
}
\ No newline at end of file
--
Gitblit v1.9.1