mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
fix: 修复系统用户vnc用户名可以不必填
This commit is contained in:
@@ -30,6 +30,10 @@ function getFields() {
|
||||
this.fieldsMeta.username.rules[0].required = true
|
||||
return
|
||||
}
|
||||
if (['vnc'].includes(form.protocol)) {
|
||||
this.fieldsMeta.username.rules[0].required = false
|
||||
return
|
||||
}
|
||||
this.fieldsMeta.username.rules[0].required = !(form.login_mode === 'manual' || form.username_same_with_user)
|
||||
|
||||
this.fieldsMeta.username.el.disabled = !!form.username_same_with_user
|
||||
|
||||
Reference in New Issue
Block a user