mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
fix: start param error
This commit is contained in:
parent
75cd7dd4b9
commit
5343040ef3
|
@ -99,9 +99,12 @@ 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 {
|
||||||
tauri::async_runtime::block_on(async {
|
let param = argvs[1].as_str();
|
||||||
resolve_scheme(argvs[1].to_owned()).await;
|
if param.starts_with("clash:") {
|
||||||
});
|
tauri::async_runtime::block_on(async {
|
||||||
|
resolve_scheme(argvs[1].to_owned()).await;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user