diff --git a/src/views/DeepNineModel.vue b/src/views/DeepNineModel.vue index 082a367..ddccb77 100644 --- a/src/views/DeepNineModel.vue +++ b/src/views/DeepNineModel.vue @@ -193,7 +193,7 @@ const closeNoPermissionDialog = () => { align-items: center; justify-content: center; /* 添加水平居中 */ - /* gap: 23px; */ + gap: 23px; margin-bottom: 10px; flex-wrap: wrap; /* 添加换行支持,防止小屏幕溢出 */ @@ -312,7 +312,7 @@ const closeNoPermissionDialog = () => { } .btn-item img { - width: 50%; + width: 70%; /* margin-top: 20px; */ } } diff --git a/src/views/components/HistoryRecord.vue b/src/views/components/HistoryRecord.vue index 8d1c1a6..b9d59a5 100644 --- a/src/views/components/HistoryRecord.vue +++ b/src/views/components/HistoryRecord.vue @@ -750,8 +750,12 @@ const selectRecord = async (record) => { } dataStore.isFeedback = false; historyData.value = result.data; - chatStore.dbqbClickRecord = historyData.value; - deepNineStore.dbqbClickRecord = historyData.value; + if (props.currentType == "AIchat") { + chatStore.dbqbClickRecord = historyData.value; + } + if (props.currentType == "deepNine") { + deepNineStore.dbqbClickRecord = historyData.value; + } // 构造股票数据对象,保持与现有结构一致 const stockData = { queryText: result.data.keyword, // 使用记录中的keyword字段作为查询文本 diff --git a/src/views/deepNine.vue b/src/views/deepNine.vue index 4b44902..752291f 100644 --- a/src/views/deepNine.vue +++ b/src/views/deepNine.vue @@ -2025,7 +2025,7 @@ watch( content: pc1, }); - const nineTurns = clickRecord.value.stockData.data; + const nineTurns = clickRecord.value.stockData; // 度牛尺K线图 if ( nineTurns && @@ -2181,6 +2181,7 @@ watch( content: "该内容由AI生成,请注意甄别", end: true, }); + } catch (e) { ElMessage.error("历史数据获取出错!"); console.error("e", e); @@ -3571,7 +3572,7 @@ p { } .gif-area { - padding: 70px 0px; + padding: 100px 0px; position: relative; /* height: 30vh; */ display: flex; @@ -4021,7 +4022,7 @@ p { @media (max-width: 768px) { .gif-area { - padding: 0px 0px; + padding: 40px 0px; position: relative; /* height: 30vh; */ display: flex; diff --git a/src/views/homePage.vue b/src/views/homePage.vue index 2ed67b4..83974ff 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -820,7 +820,7 @@ watch( }, { deep: false, immediate: true } ); - +// 监听-当点击夺宝奇兵大模型的历史记录时,滚动到顶部 watch( () => chatStore.dbqbClickRecord, async (newValue, oldValue) => { @@ -831,6 +831,17 @@ watch( container.scrollTop = 0; } ); +// 监听-当点击深度九大模型的历史记录时,滚动到顶部 +watch( + () => deepNineStore.dbqbClickRecord, + async (newValue, oldValue) => { + const container = getCurrentScrollContainer(); + if (!container) return; + + await nextTick(); // 确保在DOM更新后执行 + container.scrollTop = 0; + } +); watch( () => chatStore.dbqbScrollToTop,