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