mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 13:38:12 +00:00
refactor(http): replaced axios to native fetch api
This commit is contained in:
@@ -105,11 +105,10 @@ async function fetchJournalTimetables() {
|
||||
try {
|
||||
apiStore.journalDataStatus = DataStatus.LOADING;
|
||||
|
||||
const response = (
|
||||
await apiStore.client!.get<JournalTimetablesShortResponse>('/api/getTimetables', {
|
||||
params: fetchParams
|
||||
})
|
||||
).data;
|
||||
const response = await apiStore.client.get<JournalTimetablesShortResponse>(
|
||||
'api/getTimetables',
|
||||
fetchParams
|
||||
);
|
||||
|
||||
apiStore.journalDataStatus = DataStatus.SUCCESS;
|
||||
apiStore.journalTimetablesData = response;
|
||||
|
||||
Reference in New Issue
Block a user