aliothx_vue
v1.0.7
Published
- `타입 정의` api: string, head: any = {}, body: any = {}, option: any = {},
Readme
타입 정의api: string, head: any = {}, body: any = {}, option: any = {},타입 스크립트 기준 작성
sync/await 방식
const res = await AliothXAPI.request( api, head, body, option, );
const { dataHeader = {}, dataBody = {} } = res || undefined;
then 방식
AliothXAPI.request( api, head, body, option, ) .then((res) => { const { dataHeader = {}, dataBody = {} } = res || undefined; }) .catch((err) => { console.error('API request failed:', err); });
