From 96ff7e43096fcba5e175d6d706be8dcca13d86ba Mon Sep 17 00:00:00 2001 From: VirtualHotBar <96966978+VirtualHotBar@users.noreply.github.com> Date: Wed, 4 Mar 2026 22:03:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(openlist):=20=E5=A2=9E=E5=8A=A0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E8=B6=85=E6=97=B6=E5=A4=84=E7=90=86=E5=92=8C=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.tsx | 8 +++++- src/page/mount/add.tsx | 45 +++++++++++++++--------------- src/utils/openlist/openlist.ts | 50 +++++++++++++++++++++++++++------- 3 files changed, 69 insertions(+), 34 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index 587728f..2749b4d 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -44,7 +44,13 @@ async function appStart(setStartStr: SetStartStrFn) { if (appStarting) { return }//避免重新执行 appStarting = true - await init(setStartStr)//初始化功能 + try { + await init(setStartStr)//初始化功能 + } catch (e) { + appStarting = false + console.error('App init failed:', e) + return + } reactRoot.render( diff --git a/src/page/mount/add.tsx b/src/page/mount/add.tsx index c783015..3746c18 100644 --- a/src/page/mount/add.tsx +++ b/src/page/mount/add.tsx @@ -189,7 +189,7 @@ export default function AddMount_page() {

{!isEditMode ? t('add_mount') : t('edit_mount')}

- + {/* 基础选项 - 始终显示 */}
@@ -271,24 +271,23 @@ export default function AddMount_page() { + + } - {!showAllOptions && ( - - )} {showAllOptions && isMacOS && (