修复抢购后 UI 状态不刷新
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user