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)) - }) - } -}