瀏覽代碼

fix: setType 为 选择成员 or 角色时 对 nodeAssigneeList 重置

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

+ 9 - 0
src/components/scWorkflow/nodes/approver.vue

@@ -223,6 +223,15 @@ export default {
 	watch: {
 		modelValue() {
 			this.nodeConfig = this.modelValue
+		},
+		'form.setType': {
+			handler(type, oldType) {
+				// console.error(type, 'type, oldType', oldType)
+				if ([1, 3].includes(oldType)) {
+					// 上次setType 为 选择成员 or 角色时 对 nodeAssigneeList 重置
+					this.form.nodeAssigneeList = []
+				}
+			}
 		}
 	},
 	mounted() {