优化 prompt 文件列表显示

This commit is contained in:
RockYang
2025-03-07 18:08:21 +08:00
parent 43f00b1481
commit d0025032b0
2 changed files with 4 additions and 1 deletions

View File

@@ -159,7 +159,9 @@ const processFiles = () => {
}
return link;
});
httpPost("/api/upload/list", { urls: _links })
// 合并数组并去重
const urls = [...new Set([...links, ..._links])];
httpPost("/api/upload/list", { urls: urls })
.then((res) => {
files.value = res.data.items;