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 });