mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: 修改创建平台时 ansible_config 字段传递 dict 对象
This commit is contained in:
@@ -38,10 +38,10 @@ export default {
|
||||
},
|
||||
// 保存
|
||||
onJsonSave(value) {
|
||||
this.resultInfo = value
|
||||
this.resultInfo = typeof value === 'string' ? JSON.parse(value) : value
|
||||
this.hasJsonFlag = true
|
||||
setTimeout(() => {
|
||||
this.$emit('change', JSON.stringify(this.resultInfo))
|
||||
this.$emit('change', this.resultInfo)
|
||||
}, 500)
|
||||
},
|
||||
onError: _.debounce(function(value) {
|
||||
|
||||
@@ -81,7 +81,7 @@ export const setAutomations = (vm) => {
|
||||
|
||||
const initial = vm.initial.automation || {}
|
||||
initial['ansible_enabled'] = automation['ansible_enabled']
|
||||
initial['ansible_config'] = JSON.stringify(automation['ansible_config'])
|
||||
initial['ansible_config'] = automation['ansible_config']
|
||||
|
||||
if (initial['ansible_enabled'] === false) {
|
||||
_.set(autoFieldsMeta, `ansible_enabled.el.disabled`, true)
|
||||
|
||||
Reference in New Issue
Block a user