Skip to content

Commit c0438fb

Browse files
committed
fix
1 parent 1afc1fa commit c0438fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/onlyoffice_docspace/onlyoffice_docspace.app.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ export default {
4646
...headers,
4747
};
4848
},
49-
getConfig({
49+
async getConfig({
5050
headers, data: preData, ...args
5151
} = {}) {
5252
const contentType = constants.CONTENT_TYPE_KEY_HEADER;
5353
const hasMultipartHeader = utils.hasMultipartHeader(headers);
54-
const data = hasMultipartHeader && utils.getFormData(preData) || preData;
54+
const data = hasMultipartHeader && await utils.getFormData(preData) || preData;
5555
const currentHeaders = this.getHeaders(headers);
5656

5757
return {
@@ -65,10 +65,10 @@ export default {
6565
...args,
6666
};
6767
},
68-
_makeRequest({
68+
async _makeRequest({
6969
$ = this, path, headers, ...args
7070
} = {}) {
71-
const config = this.getConfig({
71+
const config = await this.getConfig({
7272
url: this.getUrl(path),
7373
headers: this.getHeaders(headers),
7474
...args,

0 commit comments

Comments
 (0)