fix: start param error

This commit is contained in:
MystiPanda 2024-06-12 10:19:23 +08:00
parent 75cd7dd4b9
commit 5343040ef3
No known key found for this signature in database

View File

@ -99,10 +99,13 @@ pub fn resolve_setup(app: &mut App) {
let argvs: Vec<String> = std::env::args().collect(); let argvs: Vec<String> = std::env::args().collect();
if argvs.len() > 1 { if argvs.len() > 1 {
let param = argvs[1].as_str();
if param.starts_with("clash:") {
tauri::async_runtime::block_on(async { tauri::async_runtime::block_on(async {
resolve_scheme(argvs[1].to_owned()).await; resolve_scheme(argvs[1].to_owned()).await;
}); });
} }
}
} }
/// reset system proxy /// reset system proxy