fix
This commit is contained in:
@@ -87,7 +87,6 @@ export const upload = (opts: UploadOptions): Promise<{ code?: number; message?:
|
||||
opts.url.searchParams.append('size', fileSize.toString());
|
||||
}
|
||||
}
|
||||
console.log('上传文件到', opts.url.toString());
|
||||
const headers = form.getHeaders();
|
||||
return new Promise((resolve) => {
|
||||
form.submit(getFormParams(opts, headers), (err, res) => {
|
||||
|
||||
Reference in New Issue
Block a user