From bac2f316b299df6e5d898a9e424a6145b63b8e23 Mon Sep 17 00:00:00 2001 From: AkiChase <1003019131@qq.com> Date: Mon, 10 Mar 2025 13:57:23 +0800 Subject: [PATCH] misc(none): modify layer --- src-tauri/src/main.rs | 4 ++++ src/App.vue | 32 +++++++++++++++++--------------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 2af1152..a79568a 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -12,6 +12,8 @@ use std::{fs::read_to_string, sync::Arc}; use tauri::{Emitter, Listener, Manager}; use tauri_plugin_store::StoreExt; + +// TODO move to command.rs #[tauri::command] /// get devices info list fn adb_devices() -> Result, String> { @@ -40,6 +42,8 @@ fn push_server_file(id: String, app: tauri::AppHandle) -> Result<(), String> { } } + +// TODO fix: device connect timeout #[tauri::command] /// start scrcpy server and connect to it fn start_scrcpy_server( diff --git a/src/App.vue b/src/App.vue index 0089a2b..a9b8c28 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,21 +18,23 @@ onMounted(async () => {