From 579c5e8eaffbf298d5a3359bf5859a9a07f1eb50 Mon Sep 17 00:00:00 2001 From: zhongzm Date: Fri, 27 Dec 2024 10:42:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8F=96=E6=B6=88=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E4=B8=8A=E7=BD=91=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/modules/header-banner.vue | 4 +-- src/views/userInfo/access/index.vue | 32 ------------------------ 2 files changed, 1 insertion(+), 35 deletions(-) diff --git a/src/views/home/modules/header-banner.vue b/src/views/home/modules/header-banner.vue index 6327c18..af94594 100644 --- a/src/views/home/modules/header-banner.vue +++ b/src/views/home/modules/header-banner.vue @@ -5,7 +5,6 @@ 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,8 +229,7 @@ const updateGaugeData = (opts: ECOption, data: GaugeDisplayData) => { // 添加峰值速率的 ref const peakTrafficRate = ref(0); - -// 修改 mockDataUpdate 函数 +// mockDataUpdate 函数 async function mockDataUpdate() { try { const response = await authStore.getDashboardData(); diff --git a/src/views/userInfo/access/index.vue b/src/views/userInfo/access/index.vue index 633a6e6..dbed014 100644 --- a/src/views/userInfo/access/index.vue +++ b/src/views/userInfo/access/index.vue @@ -3,7 +3,6 @@ import {ref} from 'vue' import type {TableColumnsType} from 'ant-design-vue' import {WifiOutlined} from '@ant-design/icons-vue' import {useI18n} from "vue-i18n"; -import {clientAuth, clientInfo, clientUnAuth} from '@/service/ue/client'; import { useRouter } from 'vue-router'; defineOptions({ name: 'access' @@ -95,27 +94,6 @@ onMounted(() => { }); -/** - * 模拟测试上网 - * @param type - */ -function clickBtn(type: string) { - if (type === "auth") { - clientAuth().then((res) => { - alert(JSON.stringify(res)) - }) - } - if (type === "unauth") { - clientUnAuth().then((res) => { - alert(JSON.stringify(res)) - }) - } - if (type === "info") { - clientInfo().then((res) => { - alert(JSON.stringify(res)) - }) - } -}