fix:取消前端模拟上网判断
This commit is contained in:
@@ -5,7 +5,6 @@ import { useAppStore } from '@/store/modules/app';
|
|||||||
import type { ECOption } from '@/hooks/common/echarts';
|
import type { ECOption } from '@/hooks/common/echarts';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useAuthStore } from '@/store/modules/auth';
|
import { useAuthStore } from '@/store/modules/auth';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
defineOptions({
|
defineOptions({
|
||||||
@@ -230,8 +229,7 @@ const updateGaugeData = (opts: ECOption, data: GaugeDisplayData) => {
|
|||||||
|
|
||||||
// 添加峰值速率的 ref
|
// 添加峰值速率的 ref
|
||||||
const peakTrafficRate = ref(0);
|
const peakTrafficRate = ref(0);
|
||||||
|
// mockDataUpdate 函数
|
||||||
// 修改 mockDataUpdate 函数
|
|
||||||
async function mockDataUpdate() {
|
async function mockDataUpdate() {
|
||||||
try {
|
try {
|
||||||
const response = await authStore.getDashboardData();
|
const response = await authStore.getDashboardData();
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import {ref} from 'vue'
|
|||||||
import type {TableColumnsType} from 'ant-design-vue'
|
import type {TableColumnsType} from 'ant-design-vue'
|
||||||
import {WifiOutlined} from '@ant-design/icons-vue'
|
import {WifiOutlined} from '@ant-design/icons-vue'
|
||||||
import {useI18n} from "vue-i18n";
|
import {useI18n} from "vue-i18n";
|
||||||
import {clientAuth, clientInfo, clientUnAuth} from '@/service/ue/client';
|
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
defineOptions({
|
defineOptions({
|
||||||
name: 'access'
|
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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -153,16 +131,6 @@ function clickBtn(type: string) {
|
|||||||
>
|
>
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-card>
|
</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>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user