chore: 更新依赖

This commit is contained in:
TsMask
2024-04-01 16:33:58 +08:00
parent c11893566a
commit edabd9a104
3 changed files with 17 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { reactive, onMounted, toRaw, ref } from 'vue';
import { reactive, onMounted, toRaw, ref, onUnmounted } from 'vue';
import { PageContainer } from 'antdv-pro-layout';
import { message, Modal } from 'ant-design-vue/lib';
import { SizeType } from 'ant-design-vue/lib/config-provider';
@@ -12,7 +12,6 @@ import {
} from '@/constants/result-constants';
import useDictStore from '@/store/modules/dict';
import { listAMFDataUE, delAMFDataUE } from '@/api/neData/amf';
import { parseDateToStr, parseDuration } from '@/utils/date-utils';
import { OptionsType, WS } from '@/plugins/ws-websocket';
import PQueue from 'p-queue';
const { t } = useI18n();
@@ -331,7 +330,6 @@ function wsMessage(res: Record<string, any>) {
// ueEvent CDR会话事件
if (data.groupId === '1010') {
const ueEvent = data.data;
console.log(ueEvent);
queue.add(async () => {
modalState.maxId += 1;
tableState.data.unshift({
@@ -375,6 +373,10 @@ onMounted(() => {
fnGetList();
});
});
onUnmounted(() => {
ws.close();
});
</script>
<template>

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { reactive, onMounted, toRaw, ref } from 'vue';
import { reactive, onMounted, toRaw, ref, onUnmounted } from 'vue';
import { PageContainer } from 'antdv-pro-layout';
import { message, Modal } from 'ant-design-vue/lib';
import { SizeType } from 'ant-design-vue/lib/config-provider';
@@ -366,7 +366,6 @@ function wsMessage(res: Record<string, any>) {
// cdrEvent CDR会话事件
if (data.groupId === '1005') {
const cdrEvent = data.data;
console.log(cdrEvent);
queue.add(async () => {
modalState.maxId += 1;
tableState.data.unshift({
@@ -402,6 +401,10 @@ onMounted(() => {
fnGetList();
});
});
onUnmounted(() => {
ws.close();
});
</script>
<template>