From 655141d95e39927a1059262ba828b4c5363cf5a1 Mon Sep 17 00:00:00 2001 From: wangyetao <2898314561@qq.com> Date: Tue, 28 Oct 2025 16:03:57 +0800 Subject: [PATCH] =?UTF-8?q?markdown=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/deepMate/deepMate.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue index c75f4d3..acca0a5 100644 --- a/pages/deepMate/deepMate.vue +++ b/pages/deepMate/deepMate.vue @@ -632,6 +632,10 @@ const simulateBotResponse = async (userMessage) => { console.log('postStock payload', { language: 'cn', token: '790750702588f1ea79f24dc56ccd5d8a', recordId, parentId, stockId }); console.log('StockInfo', StockInfo); + const cftl = StockInfo?.cftl || {}; + const date = StockInfo?.date || ''; + + if (StockInfo && StockInfo.code !== 200) { const errMsg = `postStock失败(${StockInfo.code}): ${StockInfo.message || '未知错误'}` console.warn(errMsg, StockInfo) @@ -642,8 +646,8 @@ const simulateBotResponse = async (userMessage) => { return } - const markdown = StockInfo.markdown; - console.log("StockInfo", StockInfo); + const markdown = StockInfo?.data?.markdown || '抱歉,未找到该股票'; + console.log('StockInfo', StockInfo); // 添加请求延迟 // const toDataInfo = await getData();