From bc751a2672c7c16b441b83b56e1a0b24703c3c0e Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期三, 20 十一月 2024 14:07:38 +0800
Subject: [PATCH] 提交注释

---
 src/views/project/ch/home/Home.vue |   33 +++++++++++++--------------------
 1 files changed, 13 insertions(+), 20 deletions(-)

diff --git a/src/views/project/ch/home/Home.vue b/src/views/project/ch/home/Home.vue
index 4db14d9..9c66049 100644
--- a/src/views/project/ch/home/Home.vue
+++ b/src/views/project/ch/home/Home.vue
@@ -8,14 +8,8 @@
 							<div class="flex items-center h-full">
 								<div class="flex items-center flex-column" style="overflow: unset !important">
 									<waterTop ref="topRef" />
-									<waterCenter
-										@advanceExampleClick="advanceExampleClick"
-										:isShowAdvanceExample="state.isShowAdvanceExample"
-										ref="waterCenterRef"
-										@updateChatInput="updateChatInput"
-										:exampleList="exampleList"
-									/>
-									<waterBottom @tagListClick="tagListClick" />
+									<waterCenter @advanceExampleClick="advanceExampleClick" ref="waterCenterRef" @updateChatInput="updateChatInput" />
+									<waterBottom @tagListClick="selectTagClick" />
 								</div>
 
 								<CustomDrawer v-model:isShow="state.isShowAdvanceExample" ref="customDrawerRef" @updateChatInput="updateChatInput" />
@@ -41,10 +35,10 @@
 import waterCenter from './component/waterRight/center.vue';
 import waterTop from './component/waterRight/top.vue';
 import CustomDrawer from '/@/components/drawer/CustomDrawer.vue';
-import { activeChatRoom, exampleSceneList, userInfo } from '/@/stores/chatRoom';
+import { userInfo } from '/@/stores/chatRoom';
+import emitter from '/@/utils/mitt';
 import { accessSessionKey } from '/@/utils/request';
 import { Local } from '/@/utils/storage';
-import emitter from '/@/utils/mitt';
 let state = reactive({
 	isShowAdvanceExample: false,
 });
@@ -62,6 +56,7 @@
 		{ element: '.pc-scenes', popover: { title: '2.璇烽�夋嫨娆″満鏅�', description: '榛樿涓哄畼缃戝伐鍗�', side: 'left' } },
 		{ element: '.pc-prompts', popover: { title: '3.璇烽�夋嫨鎻愰棶绀轰緥', description: '閫夊叾涓竴涓渚�' } },
 		{ element: '.playInput', popover: { title: '4.杈撳叆鎻愰棶鍐呭', description: '鐐瑰嚮鍙戦�佸紑濮嬪璇�' } },
+		{ element: '.retract_icon', popover: { title: '5.鏇村鎻愰棶绀轰緥', description: '灞曞紑鍚庡彲鏌ョ湅鏇村妗堜緥' } },
 	],
 	onCloseClick: () => {
 		driverObj.destroy();
@@ -70,7 +65,6 @@
 const topRef = ref(null);
 const waterCenterRef = ref(null);
 const customDrawerRef = ref(null);
-const exampleList = ref([]);
 const updateChatInput = (val) => {
 	topRef.value.updateChatInput(val);
 };
@@ -81,11 +75,11 @@
 	}
 };
 //鑾峰彇妯$増鍒楄〃
-const getSelectListSample = async () => {
-	exampleList.value = exampleSceneList.value;
-};
-const tagListClick = (tag) => {
-	isFinishPromise?.then(() => {
+
+const selectTagClick = (tag) => {
+	console.log('馃殌 ~ tag:', tag);
+	nextTick(() => {
+		console.log('馃殌 ~ 榛樿閫変腑绗竴涓満鏅�:', 111);
 		waterCenterRef.value.tagListClick(tag);
 	});
 };
@@ -94,19 +88,18 @@
 	if (!!Local.get(accessSessionKey) && userInfo.isNew && isHome) {
 		userInfo.set({
 			...userInfo.get(),
-			web_login: false,
+			web_login: true,
 		});
-		nextTick(() => {
+		isFinishPromise?.then(() => {
 			driverObj.drive();
 		});
 	}
 };
 onMounted(() => {
-	emitter.on('isShowHomePage', showGuide);
 	isFinishPromise = new Promise(async (resolve) => {
-		await getSelectListSample();
 		resolve(true);
 	});
+	emitter.on('isShowHomePage', showGuide);
 });
 
 onUnmounted(() => {

--
Gitblit v1.9.3