fix: react降级到18

This commit is contained in:
2024-12-10 15:10:25 +08:00
parent 31c23efa6c
commit 1d36639b05
3 changed files with 333 additions and 308 deletions

View File

@@ -22,10 +22,14 @@ pub struct PeNodeTreeData {
// set_complete
#[tauri::command]
pub fn set_complete(app: AppHandle) -> Result<(), AppError> {
let splash_window = app.get_webview_window("splashscreen").unwrap();
let main_window = app.get_webview_window("main").unwrap();
splash_window.close().unwrap();
main_window.show().unwrap();
let splash_window = app.get_webview_window("splashscreen");
if let Some(splash_window) = splash_window {
splash_window.close().unwrap();
}
let main_window = app.get_webview_window("main");
if let Some(main_window) = main_window {
main_window.show().unwrap();
}
Ok(())
}