添加一个跳转

This commit is contained in:
fuhl 2023-04-19 09:42:12 +08:00
parent fb4d8c9c93
commit 54222bd604

View File

@ -149,7 +149,6 @@ function useSwitchTheme() {
// 添加点击事件监听器 // 添加点击事件监听器
closeDiv.addEventListener("click", function () { closeDiv.addEventListener("click", function () {
// leftDiv.style.display = 'none';
// 移除内部所有子元素 // 移除内部所有子元素
while (leftDiv.firstChild) { while (leftDiv.firstChild) {
leftDiv.removeChild(leftDiv.firstChild); leftDiv.removeChild(leftDiv.firstChild);
@ -158,6 +157,11 @@ function useSwitchTheme() {
// 移除自身 // 移除自身
leftDiv.remove(); leftDiv.remove();
}); });
// 添加点击事件监听器
internalDiv.addEventListener("click", function () {
window.open("https://letter.ixiaohe.top/");
});
}, [config]); }, [config]);
} }