feat 消息队列

This commit is contained in:
Ironsp
2026-05-26 16:03:31 +08:00
parent a0d1c3739d
commit 9fd64e62da
2 changed files with 1 additions and 5 deletions

View File

@@ -5,10 +5,6 @@
"ComputedRef": true, "ComputedRef": true,
"DirectiveBinding": true, "DirectiveBinding": true,
"EffectScope": true, "EffectScope": true,
"ElLoading": true,
"ElMessage": true,
"ElMessageBox": true,
"ElNotification": true,
"ExtractDefaultPropTypes": true, "ExtractDefaultPropTypes": true,
"ExtractPropTypes": true, "ExtractPropTypes": true,
"ExtractPublicPropTypes": true, "ExtractPublicPropTypes": true,

View File

@@ -101,7 +101,7 @@ const handleMonitorDialogClose = (done: () => void) => {
const filterMessages = (messages: any[]) => { const filterMessages = (messages: any[]) => {
// 如果消息超过5条则只保留最新的5条 // 如果消息超过5条则只保留最新的5条
if (messages.length > 5) { if (messages.length > 5) {
return messages.slice(0, 5); // 只取5条最新消息 return messages.slice(-5); // 只取最后5条最新消息
} }
return messages; return messages;