json post base path bug fixed

This commit is contained in:
ali rahimi 2025-01-23 21:13:16 +01:00
parent 1aed723acc
commit 73410ad159

View file

@ -81,7 +81,7 @@ class HttpUtil {
},
body: JSON.stringify(data),
};
const resp = await fetch(url, requestOptions);
const resp = await fetch(basePath + url.replace(/^\/+|\/+$/g, ''), requestOptions);
const response = await resp.json();
msg = this._respToMsg({data : response});