From 67411516d19c8da53b70af0e21670caaa901ee26 Mon Sep 17 00:00:00 2001 From: Julian Freeman Date: Sun, 22 Mar 2026 17:48:43 -0400 Subject: [PATCH] add db config --- src/App.vue | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index d41ca20..b80ad57 100644 --- a/src/App.vue +++ b/src/App.vue @@ -225,9 +225,16 @@ const handleTimelineWheel = (e: WheelEvent) => { }; const updateSettings = async () => { - await store.set("mergeScreens", mergeScreens.value); await store.set("retainDays", retainDays.value); - await store.set("captureInterval", captureInterval.value); await store.set("timelineZoom", timelineZoom.value); - await store.save(); await invoke("update_interval", { seconds: captureInterval.value }); + await store.set("savePath", savePath.value); + await store.set("dbPath", dbPath.value); + await store.set("mergeScreens", mergeScreens.value); + await store.set("retainDays", retainDays.value); + await store.set("captureInterval", captureInterval.value); + await store.set("timelineZoom", timelineZoom.value); + await store.save(); + + await invoke("update_db_path", { path: dbPath.value }); + await invoke("update_interval", { seconds: captureInterval.value }); }; const togglePauseState = async () => { isPaused.value = await invoke("toggle_pause"); }; @@ -357,7 +364,25 @@ const resetTagForm = () => { newTagName.value = ""; newTagParent.value = null; n

设置

-
+
+ +
+ + +
+
+ +
+ +
+ +
+ + +
+
+
+
多屏合并
拼接所有屏幕
{{ captureInterval }}s
{{ retainDays }}天