Skip to content

Commit 25eebfa

Browse files
committed
去掉今日热榜webview登录
1 parent 890083c commit 25eebfa

File tree

2 files changed

+15
-718
lines changed

2 files changed

+15
-718
lines changed

src/scripts/newsTop.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class NewsTop {
325325
async showMenu() {
326326
const selectIndex = await showActionSheet({
327327
title: '菜单',
328-
itemList: ['使用其他排行榜', '设置颜色', '设置透明背景', '预览组件', '优化体验'],
328+
itemList: ['使用其他排行榜', '设置颜色', '设置透明背景', '预览组件'],
329329
})
330330
switch (selectIndex) {
331331
case 0:
@@ -367,18 +367,6 @@ class NewsTop {
367367
case 3:
368368
await showPreviewOptions(this.render.bind(this))
369369
break
370-
case 4:
371-
const {cancel: cancelLogin} = await showModal({
372-
title: '优化体验建议',
373-
content:
374-
'本组件数据来源于 tophub.today 这个网站,未登录状态获取的文章链接不是最终链接,有二次跳转,如果想获取真实链接,建议在此登录该网站。\n\n登录完成后,自行关闭网页',
375-
confirmText: '去登录',
376-
})
377-
if (cancelLogin) return
378-
const loginUrl = 'https://tophub.today/login'
379-
const html = await new Request(loginUrl).loadString()
380-
await WebView.loadHTML(html, loginUrl, undefined, true)
381-
break
382370
}
383371
}
384372

0 commit comments

Comments
 (0)