Fix params
This commit is contained in:
parent
5be66e7dc7
commit
4b8ee9ce83
|
@ -169,9 +169,7 @@ export default class Api {
|
||||||
|
|
||||||
addFilter(url, name) {
|
addFilter(url, name) {
|
||||||
const { path, method } = this.FILTERING_ADD_FILTER;
|
const { path, method } = this.FILTERING_ADD_FILTER;
|
||||||
const urlParameter = 'url';
|
const requestBody = `url=${url}&name=${name}`;
|
||||||
const nameParameter = 'name';
|
|
||||||
const requestBody = `${urlParameter}=${url}&${nameParameter}=${name}`;
|
|
||||||
const config = {
|
const config = {
|
||||||
data: requestBody,
|
data: requestBody,
|
||||||
header: { 'Content-Type': 'text/plain' },
|
header: { 'Content-Type': 'text/plain' },
|
||||||
|
|
Loading…
Reference in New Issue