mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-11 20:50:06 +00:00
json post base path bug fixed
This commit is contained in:
parent
1aed723acc
commit
73410ad159
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class HttpUtil {
|
||||||
},
|
},
|
||||||
body: JSON.stringify(data),
|
body: JSON.stringify(data),
|
||||||
};
|
};
|
||||||
const resp = await fetch(url, requestOptions);
|
const resp = await fetch(basePath + url.replace(/^\/+|\/+$/g, ''), requestOptions);
|
||||||
const response = await resp.json();
|
const response = await resp.json();
|
||||||
|
|
||||||
msg = this._respToMsg({data : response});
|
msg = this._respToMsg({data : response});
|
||||||
|
|
Loading…
Reference in a new issue