this.$message.warning(`${i18n.$t('Please enter your password')}`)
returnfalse
if(this.userPassword!=''&&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
}
}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
}
}
//email
if(!this.email){
this.$message.warning(`${i18n.$t('Please enter email')}`)
this.$message.warning(`${i18n.$t('Please enter a password (6-22) character 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
}
//confirmpassword
if(regCn.test(this.oldUserPassword)){
this.$message.warning(`${i18n.$t('Confirmation password cannot be in Chinese')}`)
returnfalse
}
if(!this.oldUserPassword){
this.$message.warning(`${i18n.$t('Please enter a confirmation password (6-22) character password')}`)