mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-10 12:06:38 +08:00
添加一个跳转
This commit is contained in:
parent
fb4d8c9c93
commit
54222bd604
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user