2
0

fix:取消前端模拟上网判断

This commit is contained in:
zhongzm
2024-12-27 10:42:35 +08:00
parent ac9af85eea
commit 579c5e8eaf
2 changed files with 1 additions and 35 deletions

View File

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

View File

@@ -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))
})
}
}
</script>
<template>
@@ -153,16 +131,6 @@ function clickBtn(type: string) {
>
</a-table>
</a-card>
<!-- 终端测试上网 -->
<a-space wrap>
<a-button type="primary" @click="clickBtn('auth')">终端上网</a-button>
<a-button @click="clickBtn('unauth')">终端下线</a-button>
<a-button type="dashed" @click="clickBtn('info')">终端信息</a-button>
<a-button @click="handleBack">
{{ t('page.login.common.back') }}
</a-button>
</a-space>
</div>
</template>