chore(admin-web): drop redundant publish hint copy from media view

Remove the immediate/queued publish hint sentences and the explanatory
alert block, and hide the card footer when there's nothing to show.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-25 17:39:02 +08:00
parent 87137c1f83
commit 7e78b031d7
+2 -15
View File
@@ -159,12 +159,6 @@ function resolvePublishState(account: DesktopAccountInfo): PublishState {
}
function resolvePublishHint(account: DesktopAccountInfo, publishState: PublishState): string {
if (publishState === "immediate") {
return "客户端在线,RabbitMQ 事件会立即唤醒桌面端消费发布任务。";
}
if (publishState === "queued") {
return "客户端离线,发布任务会先落库保留,等桌面端恢复在线后继续消费。";
}
if (account.health !== "live") {
return "授权状态异常,先在桌面端重新校验后再发布。";
}
@@ -320,13 +314,6 @@ async function refreshAll(): Promise<void> {
</div>
</section>
<a-alert
type="info"
show-icon
message="桌面端是账号和会话的真实持有者"
description="页面在线态由 Redis presence 和最近心跳综合判断。在线客户端会被 RabbitMQ 立即唤醒;离线客户端的任务会先落库排队,等桌面端恢复在线后继续消费。"
/>
<section class="panel media-list-panel">
<div class="media-list-toolbar">
<a-input
@@ -420,11 +407,11 @@ async function refreshAll(): Promise<void> {
</div>
</div>
<div class="media-card__footer">
<div v-if="account.deleteRequestedAt || account.publishHint" class="media-card__footer">
<span v-if="account.deleteRequestedAt" class="footer-badge footer-badge--warning">
已申请解绑
</span>
<span v-else class="footer-badge">
<span v-else-if="account.publishHint" class="footer-badge">
{{ account.publishHint }}
</span>
</div>