Commit 6b3df261 by zhousil

合并

parent b2068df8
Showing with 1 additions and 1 deletions
......@@ -3,7 +3,7 @@ import Chat from "@/customer-service/xim";
export async function uploadFile(file: File, uploading?: (p: number) => void) {
const sdk = Chat.getSdk();
const { url } = await sdk.uploadFileV2(file, {
onUploadProgress: (e) => uploading(e.percent),
onUploadProgress: e => uploading && uploading(e.percent),
});
return `${sdk.global.baseUrl}${url}`;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment