Unverified 提交 d504c96b authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

Merge pull request #1998 from dataease/pr@dev@fix_link_pwd

fix: 公共链接密码不仅限数字
...@@ -60,7 +60,8 @@ export default { ...@@ -60,7 +60,8 @@ export default {
{ required: true, message: this.$t('pblink.key_pwd'), trigger: 'blur' }, { required: true, message: this.$t('pblink.key_pwd'), trigger: 'blur' },
{ {
required: true, required: true,
pattern: /^\d{4}$/, /* pattern: /^\d{4}$/, */
pattern: /^[a-zA-Z0-9]{4}$/,
message: this.$t('pblink.pwd_format_error'), message: this.$t('pblink.pwd_format_error'),
trigger: 'blur' trigger: 'blur'
} }
...@@ -92,7 +93,7 @@ export default { ...@@ -92,7 +93,7 @@ export default {
this.msg = null this.msg = null
this.$refs.pwdForm.validate(valid => { this.$refs.pwdForm.validate(valid => {
if (!valid) return false 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 => { validatePwd(param).then(res => {
if (!res.data) { if (!res.data) {
this.msg = this.$t('pblink.pwd_error') this.msg = this.$t('pblink.pwd_error')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论