@hyc941129/axios-util
v1.0.1
Published
a axios util
Downloads
2
Readme
@hyc941129/axios-util
Quick Setup
- Add
@hyc941129/axios-util
dependency to your project
# Using pnpm
pnpm add @hyc941129/axios-util
# Using yarn
yarn add @hyc941129/axios-util
# Using npm
npm install --save @hyc941129/axios-util
- Use
@hyc941129/axios-util
in your project
import WwHttp from '@hyc941129/axios-util'
import type { CustomConfig, MessageBox } from '@hyc941129/axios-util'
const customConfig: CustomConfig = {
baseURL: '/api',
timeout: 50000
}
cosnt http= new WwHttp(customConfig)
http.get('/aaa/bbb/ccc',{a:1,b:2})
http.post('/aaa/bbb/ccc',{a:1,b:2})
http.postFrom('/aaa/bbb/ccc',{a:1,b:2})
http.put('/aaa/bbb/ccc',{a:1,b:2})
http.delete('/aaa/bbb/ccc',{a:1,b:2})