Skip to content

Commit cc513c9

Browse files
committed
update
1 parent a464c57 commit cc513c9

File tree

1 file changed

+3
-6
lines changed
  • crates/rs-tauri-vue/src-tauri/src

1 file changed

+3
-6
lines changed

crates/rs-tauri-vue/src-tauri/src/main.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ fn main() {
3939
// tips:
4040
info!("tauri main started");
4141

42-
init_app();
43-
4442
// todo x: 系统托盘菜单
4543
let tray = SystemTray::new().with_menu(menu::tray_menu());
4644

@@ -94,11 +92,10 @@ fn main() {
9492
})
9593
.invoke_handler(tauri::generate_handler![backend_add, command::add_todo,])
9694
.setup(|app| {
97-
// todo x: init app
98-
95+
//
96+
// todo x: init app, 注册+初始化资源
97+
//
9998
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
10299
init_app().await;
103100
});
104101

0 commit comments

Comments
 (0)