🌱 完善 jsBridge

This commit is contained in:
BTMuli
2023-10-24 00:38:41 +08:00
parent 7ef89c33f1
commit 35dc972841
10 changed files with 255 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
//! @file src/client.rs
//! @desc 客户端模块,负责操作米游社客户端
//! @since Beta v0.3.3
//! @since Beta v0.3.4
use tauri::{AppHandle, Manager, WindowBuilder, WindowUrl};
use url::Url;
@@ -25,6 +25,7 @@ pub async fn create_mhy_client(handle: AppHandle, func: String) {
mhy_window_config.url = get_mhy_client_url(func.clone());
let has_mhy_client = handle.get_window("mhy_client").is_some();
if has_mhy_client {
dbg!("mhy_client exists");
return;
}
let js_bridge = r#"