|
@@ -152,8 +152,11 @@ const getCaptchaImage = async () => {
|
|
|
const onSignIn = async () => {
|
|
const onSignIn = async () => {
|
|
|
state.loading.signIn = true
|
|
state.loading.signIn = true
|
|
|
const params = JSON.parse(JSON.stringify(state.form))
|
|
const params = JSON.parse(JSON.stringify(state.form))
|
|
|
- const encryptedPassword = encryptWithBackendConfig(params.password);
|
|
|
|
|
- params.saltValue = encryptedPassword; // 后端AES IV常量
|
|
|
|
|
|
|
+ if (params.password) {
|
|
|
|
|
+ const encryptedPassword = encryptWithBackendConfig(params.password);
|
|
|
|
|
+ params.saltValue = encryptedPassword; // 后端AES IV常量
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
params.password = sm3(params.password)
|
|
params.password = sm3(params.password)
|
|
|
params.openId = openId.value
|
|
params.openId = openId.value
|
|
|
params.unionId = unionId.value
|
|
params.unionId = unionId.value
|