feat: 点击客户信息跳转后自动关闭插件窗口
This commit is contained in:
6
popup.js
6
popup.js
@@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user