|
@@ -243,7 +243,7 @@ export default {
|
|
|
ChangeUsername() {
|
|
|
if (this.phone_or_email) {
|
|
|
if (this.loginType == "邮箱") {
|
|
|
- let reg = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/; //验证邮箱的正则
|
|
|
+ let reg = /^[a-zA-Z0-9_\.-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/; //验证邮箱的正则
|
|
|
this.EmailCorrect = reg.test(this.phone_or_email);
|
|
|
if (!this.EmailCorrect) {
|
|
|
this.accountError = true;
|