feat: Add Test Page

This commit is contained in:
MystiPanda
2024-01-17 11:02:17 +08:00
parent 1670c44464
commit 45a28751af
13 changed files with 654 additions and 4 deletions

View File

@@ -261,6 +261,11 @@ pub fn get_portable_flag() -> CmdResult<bool> {
Ok(*dirs::PORTABLE_FLAG.get().unwrap_or(&false))
}
#[tauri::command]
pub async fn test_delay(url: String) -> CmdResult<u32> {
Ok(feat::test_delay(url).await.unwrap_or(10000u32))
}
#[cfg(windows)]
pub mod service {
use super::*;