Merge pull request #3 from Ynng/master

账号登录页面兼容Chromium 84及以下
This commit is contained in:
qier222 2020-10-17 12:21:52 +08:00 committed by GitHub
commit a4bf6cd577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,8 +137,8 @@ export default {
return;
}
loginWithPhone({
countrycode: this.countryCode.replace("+", "").replaceAll(" ", ""),
phone: this.phoneNumber.replaceAll(" ", ""),
countrycode: this.countryCode.replace("+", "").replace(/\s/g, ''),
phone: this.phoneNumber.replace(/\s/g, ''),
password: "fakePassword",
md5_password: md5(this.password).toString(),
})
@ -156,7 +156,7 @@ export default {
return;
}
loginWithEmail({
email: this.email.replaceAll(" ", ""),
email: this.email.replace(/\s/g, ''),
password: "fakePassword",
md5_password: md5(this.password).toString(),
})