lanceJiang 9 月之前
父節點
當前提交
f1b0106beb
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/components/scWorkflow/nodes/branch.vue

+ 3 - 3
src/components/scWorkflow/nodes/branch.vue

@@ -41,8 +41,8 @@ export default defineComponent({
 		})
 		watch(() => props.modelValue, () => {
 				state.nodeConfig = props.modelValue
-			},
-			{immediate: true})
+			}/*,
+			{immediate: true}*/)
 		watch(processForm, (val) => {
 				// console.error(val, 'processForm  change...', typeof val)
 				const { formStructure } = JSON.parse(val) // 表单设计字段
@@ -221,7 +221,7 @@ export default defineComponent({
 					<div class="branch-box">
 						<el-button class="add-branch" type="success" plain round onClick={addTerm}> 添加条件</el-button>
 						{
-							state.nodeConfig.conditionNodes.map((item, index) => {
+							(state.nodeConfig.conditionNodes || []).map((item, index) => {
 								// const xx
 								const contentTxt = toText(state.nodeConfig, index) // todo...
 								const contentHtml = contentTxt ? <el-tooltip effect="dark" placement="top" v-slots={{content: () => <div v-html={contentTxt}/>}}>