From e7dc8e94c705e39796c13aa3726cdfdbf460b117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Wed, 8 May 2024 15:33:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E8=B7=9F?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E7=9B=B8=E5=85=B3=E7=9A=84=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=85=B3=E9=97=AD=E9=98=B2=E9=87=8D=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.ts | 6 ++++-- src/api/system/tenant/index.ts | 3 ++- src/api/system/user/index.ts | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/api/login.ts b/src/api/login.ts index 100a5e9..b6955de 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -20,7 +20,8 @@ export function login(data: LoginData): AxiosPromise { url: '/auth/login', headers: { isToken: false, - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, method: 'post', data: params @@ -38,7 +39,8 @@ export function register(data: any) { url: '/auth/register', headers: { isToken: false, - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, method: 'post', data: params diff --git a/src/api/system/tenant/index.ts b/src/api/system/tenant/index.ts index 4531a0a..4380dbe 100644 --- a/src/api/system/tenant/index.ts +++ b/src/api/system/tenant/index.ts @@ -25,7 +25,8 @@ export function addTenant(data: TenantForm) { url: '/system/tenant', method: 'post', headers: { - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, data: data }); diff --git a/src/api/system/user/index.ts b/src/api/system/user/index.ts index 61a58f6..25c7884 100644 --- a/src/api/system/user/index.ts +++ b/src/api/system/user/index.ts @@ -86,7 +86,8 @@ export const resetUserPwd = (userId: string | number, password: string) => { url: '/system/user/resetPwd', method: 'put', headers: { - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, data: data }); @@ -145,7 +146,8 @@ export const updateUserPwd = (oldPassword: string, newPassword: string) => { url: '/system/user/profile/updatePwd', method: 'put', headers: { - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, data: data });