v2.2.3-alpha begin

This commit is contained in:
Tunglies
2025-03-26 01:24:12 +08:00
parent 14347f60d5
commit 1baa840160
7 changed files with 302 additions and 39 deletions

View File

@@ -1,8 +1,9 @@
use super::CmdResult;
use crate::module::mihomo::MihomoManager;
use crate::{logging, module::mihomo::MihomoManager};
#[tauri::command]
pub async fn get_proxies() -> CmdResult<serde_json::Value> {
println!("get_proxies");
let mannager = MihomoManager::global();
let proxies = mannager
.refresh_proxies()
@@ -14,7 +15,8 @@ pub async fn get_proxies() -> CmdResult<serde_json::Value> {
#[tauri::command]
pub async fn get_providers_proxies() -> CmdResult<serde_json::Value> {
let mannager = MihomoManager::global();
println!("get_providers_proxies");
let manager = MihomoManager::global();
let providers = mannager
.refresh_providers_proxies()
.await