We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a464c57 commit cc513c9Copy full SHA for cc513c9
crates/rs-tauri-vue/src-tauri/src/main.rs
@@ -39,8 +39,6 @@ fn main() {
39
// tips:
40
info!("tauri main started");
41
42
- init_app();
43
-
44
// todo x: 系统托盘菜单
45
let tray = SystemTray::new().with_menu(menu::tray_menu());
46
@@ -94,11 +92,10 @@ fn main() {
94
92
})
95
93
.invoke_handler(tauri::generate_handler![backend_add, command::add_todo,])
96
.setup(|app| {
97
- // todo x: init app
98
+ //
+ // todo x: init app, 注册+初始化资源
99
tauri::async_runtime::spawn(async move {
100
- // A loop that takes output from the async process and sends it
101
- // to the webview via a Tauri Event
102
init_app().await;
103
});
104
0 commit comments