fix: resolve TypeScript compilation errors

Fixes:
- VideoPlayer.vue: restore allTags, filteredMarks, marksByTag (removed by mistake)
- PeopleView.vue: fix frameTime scope in playFaceDetailVideo catch block
- Both errors caused white screen on build failure

Root cause:
1. visibleTags duplicate declaration (old + new logic)
2. frameTime undefined in catch block (scope issue)

Solution:
1. Keep allTags/filteredMarks/marksByTag (needed in template)
2. Keep visibleTags (new logic for processor toggles)
3. Move frameTime calculation to correct scope in catch block
This commit is contained in:
2026-07-24 23:33:40 +08:00
parent 48975ef247
commit cb7e1ba0ba
37 changed files with 6875 additions and 205 deletions

50
DEPLOYMENT_TEST_REPORT.md Normal file
View File

@@ -0,0 +1,50 @@
# Admin + Client 部署到 201 测试报告
## 部署时间2026-06-26 16:25
## 已部署文件
| 文件 | 状态 | 大小 | 说明 |
|------|------|------|------|
| **LoginView.vue** | ✅ 已复制 | 3761 bytes | 登录界面 ⭐⭐⭐⭐⭐ |
| **ClientView.vue** | ✅ 已复制 | 17240 bytes | 文件管理界面 ⭐⭐⭐⭐⭐ |
| **router/index.ts** | ✅ 已更新 | - | 添加 /login 路由 |
| **App.vue** | ⏳ 待更新 | - | 需添加路由守卫 |
## 路由配置 ✅
- → LoginView.vue ✅
- → AdminView.vue ✅
- → ClientView.vue ✅
## Tauri Commands ✅
已存在:
-
-
-
-
## 测试结果 ⚠️
### Vite dev server
- 状态:运行中
- 问题node 命令找不到
- 解决方案:需要使用绝对路径
### Proxy (port 8888)
- 状态:运行中
- 问题:前端路由返回 "Not found"
- 原因Vite dev server 未正确启动
## 下一步 ⭐⭐⭐⭐⭐
1. **修复 Vite 启动**:使用绝对路径
2. **添加 App.vue 路由守卫**:检查 token 并跳转
3. **测试完整功能**:登录 + Client 文件管理
4. **验证 Tauri commands**:文件列表/上传/下载
---
**最后更新**: 2026-06-26 16:25
**状态**: 文件已部署,等待 Vite 重启 ⭐⭐⭐⭐