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

feat: 表单设计在切换时,做了特殊处理

luoyali 1 жил өмнө
parent
commit
c984d819b5

+ 3 - 1
src/views/flow/create/index.vue

@@ -153,9 +153,11 @@ const validateTabs = async () => {
 const activeComponent = index => {
 	const cur = componentsArr[index]
 	if (activeTab.value !== cur.value) {
+		if (activeTab.value === '表单设计') {
+			compRefs.value[1]?.exportJsonEv()
+		}
 		// 当前缓存
 		if (!cache_components.value[index]) {
-			cache_components.value[index] = true
 			// 更新数据
 			const updateCompInfo = compRefs.value[index]?.updateCompInfo
 			// console.error('刷新数据')