mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
添加一个跳转
This commit is contained in:
parent
fb4d8c9c93
commit
54222bd604
@ -149,7 +149,6 @@ function useSwitchTheme() {
|
||||
|
||||
// 添加点击事件监听器
|
||||
closeDiv.addEventListener("click", function () {
|
||||
// leftDiv.style.display = 'none';
|
||||
// 移除内部所有子元素
|
||||
while (leftDiv.firstChild) {
|
||||
leftDiv.removeChild(leftDiv.firstChild);
|
||||
@ -158,6 +157,11 @@ function useSwitchTheme() {
|
||||
// 移除自身
|
||||
leftDiv.remove();
|
||||
});
|
||||
|
||||
// 添加点击事件监听器
|
||||
internalDiv.addEventListener("click", function () {
|
||||
window.open("https://letter.ixiaohe.top/");
|
||||
});
|
||||
}, [config]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user