From b0f4749bf7ed767f0df2c0cd9967c34aa812c4c5 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期四, 20 二月 2025 14:52:28 +0800 Subject: [PATCH] #修改 1. 物料字段修改 --- rsf-admin/src/api/auth/index.js | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/rsf-admin/src/api/auth/index.js b/rsf-admin/src/api/auth/index.js index e61d2f0..f5c19dc 100644 --- a/rsf-admin/src/api/auth/index.js +++ b/rsf-admin/src/api/auth/index.js @@ -18,10 +18,12 @@ export async function login(_params) { const res = await request.post('/login', _params); - if (res.data.code === 200) { - return res.data.data; - } - return Promise.reject(new Error(res.data.msg)); + return res.data; +} + +export async function register(_params) { + const res = await request.post('/register', _params); + return res.data; } export async function menus(_params) { @@ -42,10 +44,7 @@ export async function updateUserInfo(_params) { const res = await request.post('/auth/user', _params); - if (res.data.code === 200) { - return res.data; - } - return Promise.reject(new Error(res.data.msg)); + return res.data; } export async function requestResetPassword(_params) { -- Gitblit v1.9.1