From eb43794d49c55cdc2b97173cd0e618b4916b84f5 Mon Sep 17 00:00:00 2001 From: hongxilin <17663930442@163.com> Date: Wed, 26 Mar 2025 18:23:59 +0800 Subject: [PATCH] =?UTF-8?q?K=E7=BA=BF=E5=9B=BE=E6=A0=B7=E5=BC=8F=E5=92=8C?= =?UTF-8?q?=E4=BA=A4=E4=BA=92=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/dataList.js | 10 +- src/views/AIchat.vue | 461 ++++++++++++++++++++++++++++++--- src/views/Echarts/KLine.vue | 614 +++++++++++++++++--------------------------- src/views/homePage.vue | 22 +- 4 files changed, 677 insertions(+), 430 deletions(-) diff --git a/src/store/dataList.js b/src/store/dataList.js index 7c2d74b..9b39b3e 100644 --- a/src/store/dataList.js +++ b/src/store/dataList.js @@ -24,11 +24,15 @@ export const useDataStore = defineStore('data', () => { const AIRadar = ref(null) const loading = ref(false) const klineData = ref(null) - + const activeTabIndex = ref(null) const setKlineData = (data) => { klineData.value = data } + const setActiveTabIndex = (index) => { + activeTabIndex.value = index + } + const getQueryVariable = (variable) => { const query = window.location.search.substring(1) // console.log(query,'query') @@ -179,10 +183,12 @@ export const useDataStore = defineStore('data', () => { // loading, // AIRadar, // fetchChartData, + activeTabIndex, klineData, setKlineData, initData, getMarket, - getQueryVariable + getQueryVariable, + setActiveTabIndex } }) diff --git a/src/views/AIchat.vue b/src/views/AIchat.vue index e379366..f8b81fe 100644 --- a/src/views/AIchat.vue +++ b/src/views/AIchat.vue @@ -1,5 +1,5 @@