Skip to content
rs
fn main() {
    tauri::Builder::default()
        .setup(|app| {
            let handle = app.handle();
            std::thread::spawn(move || {
                tauri::WindowBuilder::new(
                    &handle,
                    "external", /* the unique window label */
                    tauri::WindowUrl::External("https://tauri.app/".parse().unwrap()),
                )
                .build()
                .unwrap();
            });
            Ok(())
        })
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

最后编辑时间:

Version 4.2 (core-1.3.4)