mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 11:16:01 +00:00
axiosInstance replaced with apiCall
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
import { onMount } from 'svelte';
|
||||
import LoadingInfo from '../elements/LoadingInfo.svelte';
|
||||
import Markdown from '../elements/Markdown.svelte';
|
||||
import { apiCall } from '../utility/api';
|
||||
|
||||
import axiosInstance from '../utility/axiosInstance';
|
||||
|
||||
@@ -14,8 +15,8 @@
|
||||
|
||||
const handleLoad = async () => {
|
||||
isLoading = true;
|
||||
const resp = await axiosInstance().get('config/changelog');
|
||||
text = resp.data;
|
||||
const resp = await apiCall('config/changelog');
|
||||
text = resp;
|
||||
isLoading = false;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user