提交 8520e1d3 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 公共链接密码不仅限数字

上级 d1558aa4
......@@ -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')
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论