mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 12:06:00 +00:00
files widget
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import _ from 'lodash';
|
||||
import axios from './axios';
|
||||
import axiosInstance from './axiosInstance';
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
export default function useFetch({ url, data = undefined, params = undefined, defaultValue = undefined, ...config }) {
|
||||
const result = writable(defaultValue);
|
||||
|
||||
axios
|
||||
axiosInstance
|
||||
.request({
|
||||
method: 'get',
|
||||
params,
|
||||
|
||||
Reference in New Issue
Block a user