From fe5da694c58d740447547550ff69c2e19e92e868 Mon Sep 17 00:00:00 2001 From: Vixalie Date: Fri, 27 Mar 2026 21:16:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=92=8C=E6=95=B0=E6=8D=AE=E9=9B=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/capabilities/default.json | 4 +++- src/lib/components/Navigation.svelte | 11 +++++++++-- src/lib/stores/navigate.ts | 2 +- src/routes/boot/+page.svelte | 2 +- src/routes/create/+page.svelte | 2 +- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 724be5d..f9c5413 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -9,6 +9,8 @@ "core:default", "opener:default", "fs:default", - "dialog:default" + "dialog:default", + "fs:allow-app-read-recursive", + "fs:allow-app-write-recursive" ] } \ No newline at end of file diff --git a/src/lib/components/Navigation.svelte b/src/lib/components/Navigation.svelte index cf0cbe6..5f21ec4 100644 --- a/src/lib/components/Navigation.svelte +++ b/src/lib/components/Navigation.svelte @@ -6,8 +6,15 @@ import { isNil } from 'es-toolkit';
- Dataset + Start + Dataset (null); diff --git a/src/routes/boot/+page.svelte b/src/routes/boot/+page.svelte index b760c67..57c6422 100644 --- a/src/routes/boot/+page.svelte +++ b/src/routes/boot/+page.svelte @@ -10,7 +10,7 @@ import { message, open } from '@tauri-apps/plugin-dialog'; import { readDir, readTextFile } from '@tauri-apps/plugin-fs'; afterNavigate(() => { - currentActivate.set('dataset'); + currentActivate.set('start'); }); async function loadDataset() { diff --git a/src/routes/create/+page.svelte b/src/routes/create/+page.svelte index 0587d2a..29ec523 100644 --- a/src/routes/create/+page.svelte +++ b/src/routes/create/+page.svelte @@ -10,7 +10,7 @@ import { readDir, writeTextFile } from '@tauri-apps/plugin-fs'; import { isNil } from 'es-toolkit'; afterNavigate(() => { - currentActivate.set('dataset'); + currentActivate.set('start'); }); let storePath = $state('');