备份:大改造前的完整版本 - 修复合同细节/付款节点/文件上传/施工管理/项目保存等BUG

This commit is contained in:
root
2026-05-15 12:02:24 +08:00
parent 1cad1e438d
commit fad28741bd
6157 changed files with 5147 additions and 877912 deletions
-3
View File
@@ -107,16 +107,13 @@ const FileUpload: React.FC<FileUploadProps> = ({
formData.append('file', file);
try {
console.log('开始上传文件:', file.name);
const res = await fetch('/api/upload/single', {
method: 'POST',
body: formData
});
console.log('上传响应状态:', res.status);
const data = await res.json();
console.log('上传响应数据:', data);
if (data.success) {
onProgress({ percent: 100 });