Ver Fonte

feat: 模型数据

luoyali há 1 ano atrás
pai
commit
6455bca59d
1 ficheiros alterados com 9 adições e 4 exclusões
  1. 9 4
      src/views/flow/create/components/BasicInfo.vue

+ 9 - 4
src/views/flow/create/components/BasicInfo.vue

@@ -162,7 +162,7 @@ const updateRemoteCache = async () => {
 const handleRemoteCacheRefresh = () => {
 	cacheIndex.value && clearTimeout(cacheIndex.value)
 	cacheIndex.value = setTimeout(() => {
-		updateRemoteCache()
+		// updateRemoteCache()
 	}, cacheUpdateFr)
 }
 
@@ -216,7 +216,7 @@ watch(
 	flowBaseInfoWatcher,
 	(newVal, oldVal) => {
 		console.log('第二步:执行同步emit方法 ------', newVal, oldVal)
-		cacheTriggerFunc()
+		// cacheTriggerFunc()
 	},
 	{ deep: true }
 )
@@ -234,6 +234,7 @@ watch(
 onMounted(() => {
 	getGroupList()
 	handleCacheLoading()
+	flowStore.$reset()
 })
 
 onBeforeUnmount(() => {
@@ -248,10 +249,14 @@ defineExpose({
 
 <template>
 	<div class="base-info">
-		<div v-if="cacheLoading" style="font-size: 18px; position: absolute; left: 10px; top: 20px; z-index: 9999; color: red">
+		<div v-if="false" style="font-size: 18px; position: absolute; left: 10px; top: 20px; z-index: 9999; color: red">
 			{{ cacheLoadingNum }}秒之后开启自动缓存...
 		</div>
-		<div class="base-info-panel">
+
+		<div class="base-info-panel" style="position: relative;">
+			<div style="font-size: 18px; position: absolute; right: 10px; top: 20px; z-index: 9999;">
+				<el-button type="primary" @click="updateRemoteCache">暂存</el-button>
+			</div>
 			<el-form ref="formRef" :model="flowInfo" :rules="rules" label-position="top">
 				<el-form-item label="图标" prop="processIcon">
 					<el-space>