feat: 更新新闻管理功能,新增摘要和排序顺序字段,优化上传组件逻辑

This commit is contained in:
2026-01-09 00:26:46 +07:00
parent 28d93217a3
commit 5308020003
7 changed files with 144 additions and 50 deletions

View File

@@ -55,7 +55,7 @@ async function handleCustomRequest({ file, onProgress, onFinish, onError }: Uplo
}
// 验证文件数量
if (fileList.value.length >= props.maxFiles) {
if (fileList.value.length > props.maxFiles) {
window.$message?.error(`最多只能上传 ${props.maxFiles} 个文件`);
onError();
return;