files widget

This commit is contained in:
Jan Prochazka
2021-03-11 09:42:14 +01:00
parent a93aff1bb7
commit d5ebea3764
20 changed files with 296 additions and 33 deletions

View File

@@ -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,