diff --git a/frontend/src/views/link/pwd/index.vue b/frontend/src/views/link/pwd/index.vue index 3fe6a6e59a..59bc31bd33 100644 --- a/frontend/src/views/link/pwd/index.vue +++ b/frontend/src/views/link/pwd/index.vue @@ -60,7 +60,8 @@ export default { { required: true, message: this.$t('pblink.key_pwd'), trigger: 'blur' }, { required: true, - pattern: /^\d{4}$/, + /* pattern: /^\d{4}$/, */ + pattern: /^[a-zA-Z0-9]{4}$/, message: this.$t('pblink.pwd_format_error'), trigger: 'blur' } @@ -92,7 +93,7 @@ export default { this.msg = null this.$refs.pwdForm.validate(valid => { if (!valid) return false - const param = this.user ? {password: this.form.password, resourceId: this.resourceId, user: this.user} : {password: this.form.password, resourceId: this.resourceId} + const param = this.user ? { password: this.form.password, resourceId: this.resourceId, user: this.user } : { password: this.form.password, resourceId: this.resourceId } validatePwd(param).then(res => { if (!res.data) { this.msg = this.$t('pblink.pwd_error')