修复iOS数据库连接并增强中文字体兼容

This commit is contained in:
JSR
2026-03-18 22:32:00 +08:00
parent d839bf714c
commit 6e06de4bb4
3 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ pub fn setup_app(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
fn setup_database(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
let handle = app.handle().clone();
let db_path = if cfg!(debug_assertions) {
let db_path = if cfg!(all(debug_assertions, desktop)) {
std::path::PathBuf::from("data.sql")
} else {
let app_data_dir = handle