Jelajahi Sumber

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

hubin 1 tahun lalu
induk
melakukan
3a7dc02373

+ 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);
 	}