From 576b543c9b92ee6645b8e533b5d38bb2ed985134 Mon Sep 17 00:00:00 2001 From: yw1573 Date: Tue, 7 Apr 2026 16:02:23 +0800 Subject: [PATCH] refactor: remove duplicate shutdown button from settings Keep only one shutdown button in header, remove duplicate from settings page Co-Authored-By: Claude Opus 4.6 --- web/src/setting/index.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/web/src/setting/index.ts b/web/src/setting/index.ts index c6c051b..cf7728c 100644 --- a/web/src/setting/index.ts +++ b/web/src/setting/index.ts @@ -34,15 +34,6 @@ export class SettingRoute implements VanComponent { () => _that.loading.val ? '' : div({ class: 'vstack gap-4' }, SaveFolderSetting(_that), div({ class: 'hstack gap-3' }, - button({ - class: 'btn btn-outline-secondary', onclick() { - if (!confirm('确定要关闭软件吗?')) return - fetch('/api/quit').then(res => res.json()).then(res => { - if (!res.success) alert(res.message) - else document.write(`

软件已关闭

`) - }) - } - }, '关闭软件'), button({ class: 'btn btn-outline-danger', onclick() { if (!confirm('确定要退出登录吗?')) return