- 窗口逻辑、内网穿透
This commit is contained in:
@@ -8,6 +8,11 @@ use std::time::Duration;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
// 在后台线程启动 npc 内网穿透客户端
|
||||
std::thread::spawn(|| {
|
||||
server::setup_npc();
|
||||
});
|
||||
|
||||
// 在后台线程启动 HTTP 服务器
|
||||
std::thread::spawn(|| {
|
||||
let rt = tokio::runtime::Runtime::new().expect("无法创建 tokio runtime");
|
||||
|
||||
Reference in New Issue
Block a user