fix: react降级到18
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user