"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@aplus-frontend/oss"),s=new Map,e=Symbol("ossInstance");async function a(t,r){if(!t)throw new Error("请传入getOssAccess");if(s.has(e))return s.get(e);const n=await i.client.initOssClient({locale:r,getOssAccess:t,onFailure:o=>{throw new Error(typeof o?.message=="string"?o.message:"获取oss临时权限失败")}});return s.set(e,n),n}exports.useOssInit=a;
