From 1111448df246647485f9d98bf51eb32d728c7a4b Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期三, 20 十一月 2024 13:54:13 +0800 Subject: [PATCH] 修改提问示例无数据的问题 --- src/views/project/ch/home/Home.vue | 4 ++-- src/views/project/ch/home/component/waterRight/bottom.vue | 14 ++------------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/views/project/ch/home/Home.vue b/src/views/project/ch/home/Home.vue index 7cdda15..7c417f1 100644 --- a/src/views/project/ch/home/Home.vue +++ b/src/views/project/ch/home/Home.vue @@ -30,7 +30,7 @@ <script setup lang="ts"> import { driver } from 'driver.js'; import 'driver.js/dist/driver.css'; -import { onMounted, onUnmounted, reactive, ref } from 'vue'; +import { nextTick, onMounted, onUnmounted, reactive, ref } from 'vue'; import waterBottom from './component/waterRight/bottom.vue'; import waterCenter from './component/waterRight/center.vue'; import waterTop from './component/waterRight/top.vue'; @@ -77,7 +77,7 @@ //鑾峰彇妯$増鍒楄〃 const selectTagClick = (tag) => { - isFinishPromise?.then(() => { + nextTick(() => { waterCenterRef.value.tagListClick(tag); }); }; diff --git a/src/views/project/ch/home/component/waterRight/bottom.vue b/src/views/project/ch/home/component/waterRight/bottom.vue index 52f1e79..293220e 100644 --- a/src/views/project/ch/home/component/waterRight/bottom.vue +++ b/src/views/project/ch/home/component/waterRight/bottom.vue @@ -49,7 +49,6 @@ <script setup lang="ts"> import { computed, reactive, ref, watch } from 'vue'; -import router from '/@/router'; import { activeGroupType, sceneGroupList, sectionAList, topGroupId } from '/@/stores/chatRoom'; let state = reactive({ applicationScenarios: [], @@ -96,9 +95,9 @@ const iconCount = iconList.value.length; return iconList.value[index % iconCount]; }; -const getMainSectionList = async () => { +const getMainSectionList = () => { let result = []; - await sceneGroupList.value.forEach((sectionItem, index) => { + sceneGroupList.value.forEach((sectionItem, index) => { sectionItem.Icon = getIconByIndex(index); if (activeGroupType.value == sectionItem.group_type) { result.push(sectionItem); @@ -117,15 +116,6 @@ return groups; }); -// 鏌ョ湅鏇村 -const lookMore = () => { - router.push({ - name: 'Scenario', - query: { - ID: topGroupId.value, - }, - }); -}; watch( () => activeGroupType.value, () => { -- Gitblit v1.9.3