mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-26 15:07:04 +00:00
Merge pull request #3033 from jumpserver/pr@dev@fix_useracl_form_initial
fix: 修复创建用户登录规则时ip不显示默认值问题
This commit is contained in:
@@ -20,7 +20,7 @@ export default {
|
|||||||
initial: {
|
initial: {
|
||||||
action: 'reject',
|
action: 'reject',
|
||||||
rules: {
|
rules: {
|
||||||
ip_group: '*'
|
ip_group: ['*']
|
||||||
},
|
},
|
||||||
user: this.$route.query.user,
|
user: this.$route.query.user,
|
||||||
users: {
|
users: {
|
||||||
@@ -119,7 +119,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
afterGetFormValue(validValues) {
|
afterGetFormValue(validValues) {
|
||||||
validValues.rules.ip_group = validValues.rules.ip_group.toString()
|
|
||||||
if (!this.$route.query.user) {
|
if (!this.$route.query.user) {
|
||||||
validValues.users.username_group = validValues.users.username_group.toString()
|
validValues.users.username_group = validValues.users.username_group.toString()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user