From f381f2b077c855bf0272a416ac48cf753fcbdfc6 Mon Sep 17 00:00:00 2001 From: a1mer Date: Sat, 25 Nov 2023 14:18:18 +0800 Subject: [PATCH] chore: filter out sync device --- src/utils/aliyun.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/aliyun.ts b/src/utils/aliyun.ts index 7e233a7..ebb4955 100644 --- a/src/utils/aliyun.ts +++ b/src/utils/aliyun.ts @@ -28,7 +28,7 @@ export async function getFileListOfCurrentDir(parentId = getParentId()) { parent_file_id: parentId, url_expire_sec: 14400, }) - return res.items as Resource[] + return res.items.filter((x: any) => !x.sync_device_flag) as Resource[] } async function rename(driveId: string, fileId: string, newName: string) {