|
@@ -723,6 +723,14 @@ function App() {
|
|
|
console.error("appWindow.minimize 失败:", e);
|
|
console.error("appWindow.minimize 失败:", e);
|
|
|
}
|
|
}
|
|
|
}, [appWindow]);
|
|
}, [appWindow]);
|
|
|
|
|
+
|
|
|
|
|
+ const handleBack = useCallback(() => {
|
|
|
|
|
+ invoke("webview_history_action", { action: "back" });
|
|
|
|
|
+ }, []);
|
|
|
|
|
+
|
|
|
|
|
+ const handleRefresh = useCallback(() => {
|
|
|
|
|
+ invoke("webview_history_action", { action: "reload" });
|
|
|
|
|
+ }, []);
|
|
|
return (
|
|
return (
|
|
|
<Layout className="m-0 p-0 h-full overflow-hidden">
|
|
<Layout className="m-0 p-0 h-full overflow-hidden">
|
|
|
{/* data-tauri-drag-region:Tauri 2 原生支持,webview 层会自动 hook mousedown
|
|
{/* data-tauri-drag-region:Tauri 2 原生支持,webview 层会自动 hook mousedown
|
|
@@ -757,14 +765,14 @@ function App() {
|
|
|
// size="large"
|
|
// size="large"
|
|
|
type="text"
|
|
type="text"
|
|
|
data-tauri-drag-region="no-drag"
|
|
data-tauri-drag-region="no-drag"
|
|
|
- // onClick={handleBack}
|
|
|
|
|
|
|
+ onClick={handleBack}
|
|
|
/>
|
|
/>
|
|
|
<Button
|
|
<Button
|
|
|
icon={<RedoOutlined />}
|
|
icon={<RedoOutlined />}
|
|
|
// size="large"
|
|
// size="large"
|
|
|
type="text"
|
|
type="text"
|
|
|
data-tauri-drag-region="no-drag"
|
|
data-tauri-drag-region="no-drag"
|
|
|
- // onClick={handleRefresh}
|
|
|
|
|
|
|
+ onClick={handleRefresh}
|
|
|
/>
|
|
/>
|
|
|
|
|
|
|
|
<Tooltip
|
|
<Tooltip
|
|
@@ -936,7 +944,7 @@ function App() {
|
|
|
<Layout>
|
|
<Layout>
|
|
|
<Sider className="select-none" collapsible collapsed={collapsed} onCollapse={(c) => handleCollaspsed(c)} width={180} style={{ background: colorBgContainer }}>
|
|
<Sider className="select-none" collapsible collapsed={collapsed} onCollapse={(c) => handleCollaspsed(c)} width={180} style={{ background: colorBgContainer }}>
|
|
|
<div className="h-full w-full flex-row">
|
|
<div className="h-full w-full flex-row">
|
|
|
- <div className="flex justify-between items-center text-md pl-4 font-bold text-white"><OrderedListOutlined />{collapsed ? '' : '所有任务'}<Button icon={<PlusOutlined />} onClick={openImportWindow} /> </div>
|
|
|
|
|
|
|
+ <div className="flex justify-between items-center text-md pl-3 font-bold text-white"><OrderedListOutlined />{collapsed ? '' : '所有任务'}<Button icon={<PlusOutlined />} onClick={openImportWindow} /> </div>
|
|
|
<div className="flex-1 overflow-y-auto">
|
|
<div className="flex-1 overflow-y-auto">
|
|
|
<Menu
|
|
<Menu
|
|
|
mode="vertical"
|
|
mode="vertical"
|