diff --git a/src/views/components/HistoryRecord.vue b/src/views/components/HistoryRecord.vue index e6671e7..9e202b1 100644 --- a/src/views/components/HistoryRecord.vue +++ b/src/views/components/HistoryRecord.vue @@ -478,6 +478,7 @@ const historyRecords = ref([]); const categoryHistory = ref([]); let chatFirstFlag = true; let emotionTirstFlag = true; +let deepNineFirstFlag = true; // 添加缓存机制 let cachedCategoryHistory = null; let lastDataHash = null; @@ -525,6 +526,13 @@ const getHistoryList = async (params) => { emotionTirstFlag = false; } + if (deepNineFirstFlag && params.model == 3 && result.data.length != 0) { + if (!isMobile.value) { + chatStore.deepNineCall = true; + } + deepNineFirstFlag = false; + } + // 只在首次加载时根据chatStore状态设置折叠状态,避免搜索后自动弹出历史记录 if (isMobile.value) {