mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-28 11:39:24 +08:00
优化 prompt 文件列表显示
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user