BETA Fix4 changes
This commit is contained in:
parent
f88248643b
commit
2c2f0e71fd
38 changed files with 40 additions and 23 deletions
|
|
@ -2,11 +2,11 @@ use crate::DB;
|
|||
|
||||
#[tauri::command]
|
||||
pub fn db_read(key: &str) -> String {
|
||||
if let Some(value) = DB.lock().unwrap().get(key) {
|
||||
value
|
||||
} else {
|
||||
String::from("")
|
||||
if let Some(value) = DB.lock().unwrap().get::<String>(key) {
|
||||
return value
|
||||
}
|
||||
|
||||
String::from("")
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue