From de967a01607f4bbd7a900b5f45a01d2421320abc Mon Sep 17 00:00:00 2001 From: AhJindeg Date: Tue, 30 Apr 2024 08:50:55 +0000 Subject: [PATCH] update src/views/infra/webSocket/index.vue. #434 Signed-off-by: AhJindeg --- src/views/infra/webSocket/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/infra/webSocket/index.vue b/src/views/infra/webSocket/index.vue index dec256fe..0f0e351f 100644 --- a/src/views/infra/webSocket/index.vue +++ b/src/views/infra/webSocket/index.vue @@ -54,7 +54,7 @@
    -
  • +
  • 收到消息: {{ formatDate(msg.time) }} @@ -92,6 +92,7 @@ const { status, data, send, close, open } = useWebSocket(server.value, { /** 监听接收到的数据 */ const messageList = ref([] as { time: number; text: string }[]) // 消息列表 +const messageReverseList = computed(() => messageList.value.slice().reverse()) watchEffect(() => { if (!data.value) { return