浏览代码

Merge branch 'master' of https://gitee.com/xiaopubao/aizuda-web-vue3

hubin 1 年之前
父节点
当前提交
3a7dc02373
共有 2 个文件被更改,包括 2 次插入5 次删除
  1. 1 4
      src/components/scWorkflow/nodeWrap.vue
  2. 1 1
      src/views/flow/create/components/FlowDesign.vue

+ 1 - 4
src/components/scWorkflow/nodeWrap.vue

@@ -32,7 +32,7 @@ export default {
 	},
 	data() {
 		return {
-			nodeConfig: {}
+			nodeConfig: this.modelValue
 		}
 	},
 	watch: {
@@ -43,9 +43,6 @@ export default {
 			this.$emit('update:modelValue', val)
 		}
 	},
-	mounted() {
-		this.nodeConfig = this.modelValue
-	},
 	methods: {}
 }
 </script>

+ 1 - 1
src/views/flow/create/components/FlowDesign.vue

@@ -66,7 +66,7 @@ const queryObj = computed(() => route.query)
 onMounted(() => {
 	if (queryObj.value.id) {
 		console.log(modelContent.value, '===');
-		const _val = JSON.parse(modelContent.value)
+		const _val = JSON.parse(modelContent.value || '{}')
 		form.value = Object.assign(_val, {})
 		console.log(form.value);
 	}