feat(install): 完成安装后跳转到成功页面

- 导入 `goto` 函数用于页面导航- 安装完成后自动跳转至 `/success` 页面- 移除无用的滚动条样式定义
- 新增成功页面组件 `success/+page.svelte`
- 移除 Windows 子系统属性配置
- 注释掉线程休眠代码
- 更新 IDE 模块配置排除 target 目录
- 美化 Header 组件添加阴影和模糊效果
- 简化网络接口信息结构体注释
- 添加 TypeScript 编译器配置文件
This commit is contained in:
Chaos
2025-11-13 00:00:56 +08:00
parent 056a9c6fee
commit 9c628162aa
10 changed files with 31 additions and 30 deletions

View File

@@ -1,5 +1,3 @@
// 只在 Windows 编译
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// --- 1. 导入所需模块 ---
use thiserror::Error;
@@ -123,7 +121,7 @@ pub async fn install_game(window: tauri::Window, target_dir: String) -> Result<S
// --- 2. (新增) 关键修复 ---
// 释放线程 1 毫秒,给 Svelte 留出渲染时间
sleep(Duration::from_millis(1)).await;
// sleep(Duration::from_millis(1)).await;
if (&*file.name()).ends_with('/') {
fs::create_dir_all(&outpath)?;