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();