This commit is contained in:
2025-06-23 09:32:25 +08:00
parent 3310bd20e9
commit b5aae0d5b4
3 changed files with 27 additions and 20 deletions

View File

@@ -1,6 +1,5 @@
import { useOssSts } from "@/hooks/oss/use-oss-sts";
import { StsToken } from "@/lib/api/oss";
import OSS from "ali-oss";
import { useEffect } from "react";
export function useOssStore(options: { onStsTokenDataChanged?: (data: StsToken | undefined) => void; } = {}) {
@@ -10,7 +9,6 @@ export function useOssStore(options: { onStsTokenDataChanged?: (data: StsToken |
options.onStsTokenDataChanged?.(stsTokenData);
}, [stsTokenData]);
/** @todo */
const refresh = async () => {
await mutate();
}