mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-29 09:55:56 +08:00
feat: 原生对话框、ErrorBoundary、配置生效、交互打磨
- handleBrowse 改用 @tauri-apps/plugin-dialog 原生目录选择 - handleImport 清理临时 DOM 元素(add input.remove()) - config/default.json 实际导入生效(maxHistory、path 长度限制) - app-store.ts 长度检查改用配置值 - 删除 AppShell 中与 store 重复的长度检查 - 新增 ErrorBoundary 组件避免单异常白屏 - StatusBar 加载失败时显示重试按钮 - 取消按钮检查 isModified 未保存提示 - lib.rs 注册 tauri-plugin-dialog - tsconfig 添加 resolveJsonModule - CLAUDE.md 添加 cargo test 运行时说明 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+6
-1
@@ -2,6 +2,7 @@ import { useEffect } from 'react';
|
||||
import { useAppStore } from '@/store/app-store';
|
||||
import { initDarkMode, useThemeStore } from '@/store/theme-store';
|
||||
import { AppShell } from '@/components/layout/AppShell';
|
||||
import { ErrorBoundary } from '@/components/layout/ErrorBoundary';
|
||||
|
||||
export default function App() {
|
||||
const initialize = useAppStore((s) => s.initialize);
|
||||
@@ -15,5 +16,9 @@ export default function App() {
|
||||
initialize();
|
||||
}, [initialize]);
|
||||
|
||||
return <AppShell />;
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<AppShell />
|
||||
</ErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user