Changed api link
This commit is contained in:
parent
f9de6fb7b4
commit
f6d3e05081
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ export default async (api: string, value?: any) => {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
fetch = await ofetch(API + api, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
|
fetch = await ofetch(API + api, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
|
||||||
} else {
|
} else {
|
||||||
fetch = await ofetch(API + `${api}/${value}/fetch-data`, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
|
fetch = await ofetch(`${API}${api}/${value}/fetch-data`, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
|
||||||
}
|
}
|
||||||
|
|
||||||
return fetch
|
return fetch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue