From f1b0762ca531dfeb5ba611a46e92928f639d3279 Mon Sep 17 00:00:00 2001 From: no99 <17663930442@163.com> Date: Wed, 2 Jul 2025 15:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=85=A8=E6=9D=83=E9=99=90to?= =?UTF-8?q?ken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AIchat.vue | 55 ++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index 9172e6f..de85f2a 100644 --- a/src/views/AIchat.vue +++ b/src/views/AIchat.vue @@ -31,6 +31,7 @@ import title4 from "@/assets/img/AIchat/综合作战.png"; import logo1 from "@/assets/img/AIchat/夺宝奇兵logo.png"; import logo2 from "@/assets/img/AIchat/开启无限财富.png"; import bgc from "@/assets/img/AIchat/圈.png"; + const chatStore = useChatStore(); const audioStore = useAudioStore(); const dataStore = useDataStore(); @@ -577,8 +578,13 @@ watch( }; try { + const env = import.meta.env.VITE_ENV; + const result20 = await dataListAPI({ - token: localStorage.getItem("localToken"), + token: + env == "development" + ? "8Csj5VVX1UbIb4C3oxrnbZi0+fEeMx8pywnIlrmTm45Cb/EllzWACLto9J9+fCFsfdgBOvKvyY94FvqlvM0" + : "8nkj4QBV1RPIb4CzoRTnbZi0+fEeMx8pywnIlrmTxdwROKkuwWqAWu9orpkpeXVqL98DPfeonNYpHv+mucA", market: codeData.value.market, code: codeData.value.code, language: "cn", //t.value.suoxie, @@ -1150,7 +1156,7 @@ watch( // } // }, 50); // 调整速度为50ms/字符 - addTypingTask(aiMessage5, [ac51,ac52,ac53,ac54], 50); + addTypingTask(aiMessage5, [ac51, ac52, ac53, ac54], 50); // chatStore.messages.push({ // sender: "ai", @@ -2261,22 +2267,52 @@ function KlineCanvsEcharts(containerId) { }, grid: [ { - left: window.innerWidth > 1024 ? '70vw' : window.innerWidth>768? '65vw' : '55vw', - right: window.innerWidth > 1024 ? '40vw' : window.innerWidth>768? '30vw' : '40vw', + left: + window.innerWidth > 1024 + ? "70vw" + : window.innerWidth > 768 + ? "65vw" + : "55vw", + right: + window.innerWidth > 1024 + ? "40vw" + : window.innerWidth > 768 + ? "30vw" + : "40vw", top: window.innerWidth > 768 ? "8%" : "5%", height: window.innerWidth > 768 ? "34%" : "34%", containLabel: false, }, { - left: window.innerWidth > 1024 ? '70vw' : window.innerWidth>768? '65vw' : '55vw', - right: window.innerWidth > 1024 ? '40vw' : window.innerWidth>768? '30vw' : '40vw', + left: + window.innerWidth > 1024 + ? "70vw" + : window.innerWidth > 768 + ? "65vw" + : "55vw", + right: + window.innerWidth > 1024 + ? "40vw" + : window.innerWidth > 768 + ? "30vw" + : "40vw", top: window.innerWidth > 768 ? "45%" : "42%", height: window.innerWidth > 768 ? "22%" : "22%", containLabel: false, }, { - left: window.innerWidth > 1024 ? '70vw' : window.innerWidth>768? '65vw' : '55vw', - right: window.innerWidth > 1024 ? '40vw' : window.innerWidth>768? '30vw' : '40vw', + left: + window.innerWidth > 1024 + ? "70vw" + : window.innerWidth > 768 + ? "65vw" + : "55vw", + right: + window.innerWidth > 1024 + ? "40vw" + : window.innerWidth > 768 + ? "30vw" + : "40vw", top: window.innerWidth > 768 ? "73%" : "70%", height: window.innerWidth > 768 ? "20%" : "22%", containLabel: false, @@ -2832,8 +2868,7 @@ function KlineCanvsEcharts(containerId) { if (item[1] === 100) { return { coord: [item[0], 80], - symbolOffset: - [0, -10], + symbolOffset: [0, -10], itemStyle: { color: "#ff0000", },