From 8520e1d39a17429d0a5f12f33377c6004d82d9f7 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 29 Mar 2022 22:39:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=AC=E5=85=B1=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E4=B8=8D=E4=BB=85=E9=99=90=E6=95=B0=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/link/pwd/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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')