chore(dev): vite 监视优化与依赖清理

- vite.config:server.watch.ignored 忽略 src-tauri/backend venv/vendor(避免 ultralytics/matplotlib html 误触发整页 reload)
- 移除已弃用的 @mediapipe/tasks-vision(由后端 YOLO 替代)
This commit is contained in:
Pine
2026-08-18 01:38:05 +08:00
parent f22f0905ca
commit b9eaef30f2
2 changed files with 944 additions and 7 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ export default defineConfig(async () => ({
// 监听所有网络接口,局域网内其他设备可通过 http://<IP>:1420 访问
host: true,
watch: {
ignored: ["**/src-tauri/**"],
// 忽略 src-tauri 与后端 venvultralytics/matplotlib 的 html 会误触发页面 reload
ignored: ["**/src-tauri/**", "**/backend/.venv/**", "**/backend/vendor/**"],
},
// 开发时代理 API 请求到 Rust 后端
proxy: {