feat(router): Add dynamic routing

This commit is contained in:
陈凯龙
2022-01-11 10:47:10 +08:00
parent 95a2bd884d
commit b218ccc9cc
15 changed files with 478 additions and 323 deletions

View File

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