mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-18 06:47:39 +00:00
Merge pull request #2661 from jumpserver/pr@dev@fix_endpoint_rule_error
fix: 修复创建端点规则报错问题
This commit is contained in:
commit
db7d64b9a1
@ -17,6 +17,9 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
url: '/api/v1/terminal/endpoint-rules/',
|
url: '/api/v1/terminal/endpoint-rules/',
|
||||||
|
initial: {
|
||||||
|
ip_group: '*'
|
||||||
|
},
|
||||||
successUrl: { name: 'TerminalSetting', params: { activeMenu: 'EndpointRuleList' }},
|
successUrl: { name: 'TerminalSetting', params: { activeMenu: 'EndpointRuleList' }},
|
||||||
fields: [
|
fields: [
|
||||||
[this.$t('common.Basic'), ['name', 'ip_group', 'endpoint', 'priority']],
|
[this.$t('common.Basic'), ['name', 'ip_group', 'endpoint', 'priority']],
|
||||||
@ -44,7 +47,7 @@ export default {
|
|||||||
return value
|
return value
|
||||||
},
|
},
|
||||||
afterGetFormValue(formValue) {
|
afterGetFormValue(formValue) {
|
||||||
formValue.ip_group = formValue.ip_group.toString()
|
formValue.ip_group = formValue.ip_group?.toString()
|
||||||
return formValue
|
return formValue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user