Эх сурвалжийг харах

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

lanceJiang 1 жил өмнө
parent
commit
db94ad3eda

+ 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() {