mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-04 08:25:56 +00:00
fix: 修复平台更新字段格式
This commit is contained in:
@@ -55,6 +55,7 @@ export default {
|
|||||||
const query = this.$route.query || {}
|
const query = this.$route.query || {}
|
||||||
const automation = values['automation'] || {}
|
const automation = values['automation'] || {}
|
||||||
const category_type = values['category_type']
|
const category_type = values['category_type']
|
||||||
|
automation.ansible_config = JSON.parse(automation.ansible_config)
|
||||||
|
|
||||||
if (query.hasOwnProperty('clone_from') && automation.hasOwnProperty('id')) {
|
if (query.hasOwnProperty('clone_from') && automation.hasOwnProperty('id')) {
|
||||||
delete automation['id']
|
delete automation['id']
|
||||||
|
Reference in New Issue
Block a user