mirror of
https://github.com/axllent/mailpit.git
synced 2025-03-17 21:18:19 +02:00
UI: Post data using 'application/json'
This commit is contained in:
parent
3c81e152e6
commit
6dbdbf1637
@ -96,12 +96,8 @@ const commonMixins = {
|
||||
*/
|
||||
post: function (url, values, callback) {
|
||||
let self = this;
|
||||
const params = new URLSearchParams();
|
||||
for (const [key, value] of Object.entries(values)) {
|
||||
params.append(key, value);
|
||||
}
|
||||
self.loading++;
|
||||
axios.post(url, params)
|
||||
axios.post(url, values)
|
||||
.then(callback)
|
||||
.catch(self.handleError)
|
||||
.then(function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user