From 16335ed087faaac2b8bc1499cf5208ee211a53a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Thu, 26 Mar 2026 05:55:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=A0=E9=81=93=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E6=97=B6=E6=98=BE=E7=A4=BA=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E6=8F=90=E7=A4=BA=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E7=BD=91=E7=BB=9C=E6=85=A2=E6=97=B6=E7=A9=BA=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - channels.js: 动作执行开始时显示「正在下载,请稍候」提示 - 首条日志到达后自动移除提示 --- src/pages/channels.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pages/channels.js b/src/pages/channels.js index 7cfe3ce..010ba4a 100644 --- a/src/pages/channels.js +++ b/src/pages/channels.js @@ -1382,6 +1382,13 @@ async function openConfigDialog(pid, page, state, accountId) { try { btn.disabled = true btn.textContent = t('channels.executingShort') + if (logBox) { + const hint = document.createElement('div') + hint.style.cssText = 'color:var(--text-tertiary);font-style:italic' + hint.id = 'action-loading-hint' + hint.textContent = t('channels.downloadingPlugin') || '正在下载,请稍候(首次安装可能需要几分钟)...' + logBox.appendChild(hint) + } const _qrBuf = [] let _qrDone = false const _flushQr = () => { @@ -1448,6 +1455,8 @@ async function openConfigDialog(pid, page, state, accountId) { ` logBox.appendChild(wrap) } else if (msg.trim()) { + const loadingHint = logBox.querySelector('#action-loading-hint') + if (loadingHint) loadingHint.remove() const div = document.createElement('div') div.textContent = msg logBox.appendChild(div)