|
|
@ -16,7 +16,6 @@ export type Method =
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Parse route parameters for responseType
|
|
|
|
* Parse route parameters for responseType
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const reg = /:[a-z|A-Z]+/g;
|
|
|
|
const reg = /:[a-z|A-Z]+/g;
|
|
|
|
|
|
|
|
|
|
|
@ -75,6 +74,7 @@ export async function request({
|
|
|
|
// @ts-ignore
|
|
|
|
// @ts-ignore
|
|
|
|
...config
|
|
|
|
...config
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
return response.json();
|
|
|
|
return response.json();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -123,4 +123,4 @@ export const webapi = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export default webapi
|
|
|
|
export default webapi
|
|
|
|