this.$message.warning(`${i18n.$t('Please enter user name')}`)
this.$message.warning(`${i18n.$t('Please enter user name')}`)
returnfalse
returnfalse
}
}
//password
//password
if(!this.userPassword&&!this.item){
if(this.userPassword!=''&&this.item){
this.$message.warning(`${i18n.$t('Please enter your password')}`)
if(!regPassword.test(this.userPassword)){
this.$message.warning(`${i18n.$t('Password consists of at least two combinations of numbers, letters, and characters, and the length is between 6-22')}`)
returnfalse
}
}elseif(!this.item){
if(!regPassword.test(this.userPassword)){
this.$message.warning(`${i18n.$t('Password consists of at least two combinations of numbers, letters, and characters, and the length is between 6-22')}`)
returnfalse
returnfalse
}
}
}
//email
//email
if(!this.email){
if(!this.email){
this.$message.warning(`${i18n.$t('Please enter email')}`)
this.$message.warning(`${i18n.$t('Please enter email')}`)
this.$message.warning(`${i18n.$t('Password cannot be in Chinese')}`)
this.$message.warning(`${i18n.$t('Password consists of at least two combinations of numbers, letters, and characters, and the length is between 6-22')}`)
returnfalse
}
if(!this.userPassword){
this.$message.warning(`${i18n.$t('Please enter a password (6-22) character password')}`)