fix: 修复由于迁移数据库位置导致的无法启动的问题
This commit is contained in:
1 file changed
+1
-1
@@ -30,7 +30,7 @@ impl Database {
|
||||
fn get_bundled_database_path(app_handle: &tauri::AppHandle) -> Result<PathBuf> {
|
||||
let resource_path = app_handle
|
||||
.path()
|
||||
.resolve("../../resources/data.db", tauri::path::BaseDirectory::Resource)?;
|
||||
.resolve("./resources/data.db", tauri::path::BaseDirectory::Resource)?;
|
||||
|
||||
println!("Database path: {:?}", resource_path);
|
||||
Ok(resource_path)
|
||||
|
||||
Reference in new issue
Block a user