feat: 点击客户信息跳转后自动关闭插件窗口

This commit is contained in:
jason
2026-03-04 00:27:10 +08:00
parent 0f9809b064
commit 67a80b8d73

View File

@@ -529,10 +529,10 @@ document.addEventListener('DOMContentLoaded', () => {
username: rule.username, username: rule.username,
password: rule.password password: rule.password
}, (response) => { }, (response) => {
// Return text after a short delay // 提供短暂的“清理中...”视觉反馈后关闭插件
setTimeout(() => { setTimeout(() => {
if (element) element.innerHTML = originalContent; window.close();
}, 1500); }, 1500); // 保持 1500ms 反馈后关闭,也可改为更短如 200ms为保持原逻辑体验暂设 1500ms
}); });
} }
} }