perf: 优化代码

This commit is contained in:
2026-03-27 18:02:38 +08:00
parent b4cb2dcff3
commit ea3d663409

View File

@@ -76,15 +76,15 @@ const Logs = () => {
const timestamp = extractTimestamp(message);
return {
id: `${accountId}-${index}`,
accountId,
accountName,
index: index + 1,
timestamp,
timestampValue: parseTimestampValue(timestamp),
content: stripTimestamp(message),
raw: message,
};
id: `${accountId}-${index}`,
accountId,
accountName,
index: index + 1,
timestamp,
timestampValue: parseTimestampValue(timestamp),
content: stripTimestamp(message),
raw: message,
};
});
})
.sort((left, right) => {
@@ -287,7 +287,7 @@ const Logs = () => {
<Show
when={allLogs().length > 0}
fallback={
<div class="flex h-full items-center justify-center rounded-[26px] border border-dashed border-white/10 bg-white/[0.03] px-6 text-slate-500">
<div class="flex h-full items-center justify-center rounded-[26px] border border-dashed border-white/10 bg-white/3 px-6 text-slate-500">
</div>
}
@@ -295,7 +295,7 @@ const Logs = () => {
<div class="space-y-1">
<For each={allLogs()}>
{(log) => (
<div class="rounded-lg px-3 py-2 transition hover:bg-white/[0.04]">
<div class="rounded-lg px-3 py-2 transition hover:bg-white/4">
{/* 头部 */}
<div class="flex items-center justify-between text-[11px] text-slate-400">
<div class="flex items-center gap-2">