mirror of
https://github.com/jiangrui1994/CloudSaver.git
synced 2026-01-12 08:08:46 +08:00
feat:增加跳转按钮
This commit is contained in:
@@ -128,7 +128,16 @@ export const useResourceStore = defineStore("resource", {
|
||||
}
|
||||
let { data = [] } = await resourceApi.search(keyword || "", channelId, lastMessageId);
|
||||
this.keyword = keyword || "";
|
||||
data = data.filter((item) => item.list.length > 0);
|
||||
data = data
|
||||
.filter((item) => item.list.length > 0)
|
||||
.map((x) => ({
|
||||
...x,
|
||||
list: x.list.map((item) => ({
|
||||
...item,
|
||||
isSupportSave: CLOUD_DRIVES.some((drive) => drive.regex.test(item.cloudLinks[0])),
|
||||
})),
|
||||
}));
|
||||
console.log(data);
|
||||
if (isLoadMore) {
|
||||
const findedIndex = this.resources.findIndex((item) => item.id === data[0]?.id);
|
||||
if (findedIndex !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user