浏览代码

fix: resolve scheme error

MystiPanda 1 年之前
父节点
当前提交
6702ac957b
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src-tauri/src/utils/resolve.rs

+ 3 - 1
src-tauri/src/utils/resolve.rs

@@ -240,7 +240,9 @@ pub fn save_window_size_position(app_handle: &AppHandle, save_to_file: bool) ->
 }
 
 pub async fn resolve_scheme(param: String) {
-    let url = param.trim_start_matches("clash://install-config/?url=");
+    let url = param
+        .trim_start_matches("clash://install-config/?url=")
+        .trim_start_matches("clash://install-config?url=");
     let option = PrfOption {
         user_agent: None,
         with_proxy: Some(true),