提交
This commit is contained in:
1 parent
48109ff1e7
commit
4e34c7eb36
60 files changed
+9583
-139
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ VITE_BUILD_COMPRESS = gzip
|
||||
VITE_APP_PORT = 80
|
||||
|
||||
# 接口加密功能开关(如需关闭 后端也必须对应关闭)
|
||||
VITE_APP_ENCRYPT = true
|
||||
VITE_APP_ENCRYPT = false
|
||||
# 接口加密传输 RSA 公钥与后端解密私钥对应 如更换需前后端一同更换
|
||||
VITE_APP_RSA_PUBLIC_KEY = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ=='
|
||||
# 接口响应解密 RSA 私钥与后端加密公钥对应 如更换需前后端一同更换
|
||||
|
||||
@@ -27,7 +27,7 @@ export function login(data: LoginData): AxiosPromise<LoginResult> {
|
||||
url: '/auth/login',
|
||||
headers: {
|
||||
isToken: false,
|
||||
isEncrypt: true,
|
||||
isEncrypt: 'true',
|
||||
repeatSubmit: false
|
||||
},
|
||||
method: 'post',
|
||||
@@ -46,7 +46,7 @@ export function register(data: any) {
|
||||
url: '/auth/register',
|
||||
headers: {
|
||||
isToken: false,
|
||||
isEncrypt: true,
|
||||
isEncrypt: 'true',
|
||||
repeatSubmit: false
|
||||
},
|
||||
method: 'post',
|
||||
|
||||
@@ -25,7 +25,7 @@ export function addTenant(data: TenantForm) {
|
||||
url: '/system/tenant',
|
||||
method: 'post',
|
||||
headers: {
|
||||
isEncrypt: true,
|
||||
isEncrypt: 'true',
|
||||
repeatSubmit: false
|
||||
},
|
||||
data: data
|
||||
|
||||
@@ -86,7 +86,7 @@ export const resetUserPwd = (userId: string | number, password: string) => {
|
||||
url: '/system/user/resetPwd',
|
||||
method: 'put',
|
||||
headers: {
|
||||
isEncrypt: true,
|
||||
isEncrypt: 'true',
|
||||
repeatSubmit: false
|
||||
},
|
||||
data: data
|
||||
@@ -146,7 +146,7 @@ export const updateUserPwd = (oldPassword: string, newPassword: string) => {
|
||||
url: '/system/user/profile/updatePwd',
|
||||
method: 'put',
|
||||
headers: {
|
||||
isEncrypt: true,
|
||||
isEncrypt: 'true',
|
||||
repeatSubmit: false
|
||||
},
|
||||
data: data
|
||||
|
||||
Reference in new issue
Block a user