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';
@@ -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>