Explorar o código

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

luoyali hai 1 ano
pai
achega
c984d819b5
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/views/flow/create/index.vue

+ 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('刷新数据')