feat: Add analysis api

This commit is contained in:
陈凯龙
2022-01-24 09:43:27 +08:00
parent c53fa562e5
commit 83327ea763
7 changed files with 188 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ import { config } from '@/config/axios/config'
const { default_headers } = config
export const useAxios = () => {
const request = (option: AxiosConfig): AxiosPromise => {
const request = <T>(option: AxiosConfig): AxiosPromise<T> => {
const { url, method, params, data, headersType, responseType } = option
return service({
url: url,