From f7d07a8e75b786d777d0e51e6f8afd56a8e2e76d Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 13 Jun 2023 11:33:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96:=E9=81=BF=E5=85=8D=E8=BF=87?= =?UTF-8?q?=E5=A4=9A=E7=9A=84=E8=B0=83=E7=94=A8=E4=BA=91=E7=9B=98=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Common/Request.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Common/Request.ts b/src/Common/Request.ts index 843556c1c..3db7931a3 100644 --- a/src/Common/Request.ts +++ b/src/Common/Request.ts @@ -2,7 +2,7 @@ import { Intent } from "@blueprintjs/core"; import { ShowLinesToaster } from "../UI/Components/Toaster"; import { TopPanelStore } from "../UI/Store/TopPanelStore"; import { userConfigStore } from "../UI/Store/UserConfigStore"; -import { BuyCadUrl, ChangeZoneUrls, ImgsUrl } from "./HostUrl"; +import { BuyCadUrl, ImgsUrl } from "./HostUrl"; export enum DirectoryId { @@ -91,8 +91,10 @@ export async function Post(url: string, body?: BodyInit, isShowErrMsg = true): P }); } - if (result.err_code === RequestStatus.Ok && ChangeZoneUrls.includes(url)) - await store.UpdateClound(); + //我们在资源管理器上呼出时,总是会更新云盘的占用信息,所以这里的请求也就不再需要了 + //未来有可能设置脏检查,避免每次呼出都请求数据? + // if (result.err_code === RequestStatus.Ok && ChangeZoneUrls.includes(url)) + // await store.UpdateClound(); return result; } catch (error)