fix: 修复由于迁移数据库位置导致的无法启动的问题

This commit is contained in:
zihluwang committed 2025-07-29 16:12:32 +08:00
1 parent 84e06241aa
commit a8d7519fb3
1 file changed
+1 -1
+1 -1
View File
@@ -30,7 +30,7 @@ impl Database {
fn get_bundled_database_path(app_handle: &tauri::AppHandle) -> Result<PathBuf> { fn get_bundled_database_path(app_handle: &tauri::AppHandle) -> Result<PathBuf> {
let resource_path = app_handle let resource_path = app_handle
.path() .path()
.resolve("../../resources/data.db", tauri::path::BaseDirectory::Resource)?; .resolve("./resources/data.db", tauri::path::BaseDirectory::Resource)?;
println!("Database path: {:?}", resource_path); println!("Database path: {:?}", resource_path);
Ok(resource_path) Ok(resource_path)