mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🐛 修复窗口不显示问题
This commit is contained in:
@@ -9,6 +9,7 @@ use tauri::{AppHandle, Manager, WindowBuilder, WindowEvent, WindowUrl};
|
|||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
|
pub async fn create_mhy_client(handle: AppHandle, func: String, url: String) {
|
||||||
let mut mhy_window_config = handle.config().tauri.windows.get(1).unwrap().clone();
|
let mut mhy_window_config = handle.config().tauri.windows.get(1).unwrap().clone();
|
||||||
|
mhy_window_config.visible = true;
|
||||||
if url != "" {
|
if url != "" {
|
||||||
mhy_window_config.url = WindowUrl::External(url.parse().unwrap());
|
mhy_window_config.url = WindowUrl::External(url.parse().unwrap());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user