|
|
|
@ -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)
|
|
|
|
|