fix: request url

This commit is contained in:
lawvs 2022-09-09 14:31:48 +08:00
parent 8cc88395d7
commit 5985d53625

View File

@ -36,7 +36,7 @@ const withTolgee = (
} else {
// URL or URLLike + ?RequestInit
if (typeof argArray[0] === 'string') {
argArray[0] = TOLGEE_API_URL + argArray[0];
argArray[0] = `${TOLGEE_API_URL}/v2/projects${argArray[0]}`;
}
if (!argArray[1]) {
argArray[1] = {};