2
0

Revert "fix:模拟上网判断"

This reverts commit 09152873
This commit is contained in:
zhongzm
2024-12-27 15:47:25 +08:00
parent ef6277d8b8
commit 7c36e9f9ef
2 changed files with 4 additions and 1 deletions

View File

@@ -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= `{

View File

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