From 7c36e9f9ef720d601f9af81f15d94615e08d6a23 Mon Sep 17 00:00:00 2001 From: zhongzm Date: Fri, 27 Dec 2024 15:47:25 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=E6=A8=A1=E6=8B=9F=E4=B8=8A?= =?UTF-8?q?=E7=BD=91=E5=88=A4=E6=96=AD"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 09152873 --- .env.test | 2 +- src/views/home/modules/header-banner.vue | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.test b/.env.test index ee2b694..da9c9ea 100644 --- a/.env.test +++ b/.env.test @@ -1,5 +1,5 @@ # backend service base url, test environment -VITE_SERVICE_BASE_URL=http://localhost:8080 +VITE_SERVICE_BASE_URL=http://192.168.9.50/u-api # other backend service base url, test environment VITE_OTHER_SERVICE_BASE_URL= `{ diff --git a/src/views/home/modules/header-banner.vue b/src/views/home/modules/header-banner.vue index af94594..a15817b 100644 --- a/src/views/home/modules/header-banner.vue +++ b/src/views/home/modules/header-banner.vue @@ -5,6 +5,7 @@ import { useAppStore } from '@/store/modules/app'; import type { ECOption } from '@/hooks/common/echarts'; import { useI18n } from 'vue-i18n'; import { useAuthStore } from '@/store/modules/auth'; + const { t } = useI18n(); const authStore = useAuthStore(); defineOptions({ @@ -230,6 +231,8 @@ const updateGaugeData = (opts: ECOption, data: GaugeDisplayData) => { // 添加峰值速率的 ref const peakTrafficRate = ref(0); // mockDataUpdate 函数 + +// 修改 mockDataUpdate 函数 async function mockDataUpdate() { try { const response = await authStore.getDashboardData();