fix: change GET by POST, to solve "Request Header Fields Too Large"
This commit is contained in:
parent
e6410f6b13
commit
8c6c7345cd
|
@ -20,7 +20,7 @@ module.exports = Self => {
|
||||||
},
|
},
|
||||||
http: {
|
http: {
|
||||||
path: `/:id/importBuysPreview`,
|
path: `/:id/importBuysPreview`,
|
||||||
verb: 'GET'
|
verb: 'POST'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ class Controller extends Section {
|
||||||
fetchBuys(buys) {
|
fetchBuys(buys) {
|
||||||
const params = {buys};
|
const params = {buys};
|
||||||
const query = `Entries/${this.$params.id}/importBuysPreview`;
|
const query = `Entries/${this.$params.id}/importBuysPreview`;
|
||||||
this.$http.get(query, {params}).then(res => {
|
this.$http.post(query, params).then(res => {
|
||||||
this.import.buys = res.data;
|
this.import.buys = res.data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue