Private
Public Access
1
0

优化:代码审查

清理:
- 删除重复的 composables(useFilePreview.js、useFileEdit.js)
- 已有 TypeScript 版本在 FileSystem/composables/

优化:
- 统一 API 层错误日志到 debugLog(system.ts)
- 移除 UpdatePanel 调试面板和调试文本

代码质量:
- 提升代码可维护性
- 统一错误处理方式
This commit is contained in:
2026-02-05 00:28:26 +08:00
parent f7d648ea52
commit 9eb39fbb8f
4 changed files with 8 additions and 991 deletions

View File

@@ -79,20 +79,8 @@
</div>
</a-alert>
<!-- 调试信息始终显示 -->
<div style="font-size: 12px; color: #999; padding: 8px; background: var(--color-fill-2); margin-top: 16px; border-radius: 4px;">
<strong>调试信息</strong>
<br>downloading = {{ downloading }}
<br>downloadProgress = {{ downloadProgress }}
<br>downloadStatus = {{ downloadStatus }}
<br>progressInfo = {{ progressInfo }}
</div>
<!-- 下载进度 -->
<div v-if="downloadProgress > 0 || downloading" class="download-progress">
<div style="font-size: 11px; color: #999; margin-bottom: 8px;">
进度条已显示downloadProgress={{ downloadProgress }}, downloading={{ downloading }}
</div>
<a-progress
:percent="downloadProgress"
:status="downloadStatus"