修复抢购后 UI 状态不刷新

This commit is contained in:
yml2213
2026-06-26 20:23:06 +08:00
parent 385a6d882c
commit 818e1ff11b
7 changed files with 143 additions and 13 deletions
@@ -45,6 +45,14 @@ const openSettings = () => {
CK 管理
</button>
</div>
<span
v-if="currentPage === 'console'"
class="run-state"
:class="{ active: runState !== '等待操作' }"
:title="runState"
>
{{ runState }}
</span>
<span v-if="countdownSeconds > 0 && currentPage === 'console'" class="countdown-badge">
{{ formatRemain(countdownSeconds) }}
</span>
@@ -158,6 +166,26 @@ const openSettings = () => {
margin-top: 2px;
}
.run-state {
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--muted);
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: 999px;
padding: 4px 10px;
font-size: 12px;
font-weight: 500;
}
.run-state.active {
color: var(--accent);
background: var(--accent-soft);
border-color: var(--accent-border);
}
.top-actions {
display: flex;
align-items: center;