- 安装
npm install klsm-api-library
- 引入使用
import { CommonApi } from 'klsm-api-library'
const sendRequset = () => {
CommonApi.sendRequset(params)
.then((res: any) => {
doSomething
}).catch(err: any) => {
doSomething
}
}
npm install klsm-api-library
import { CommonApi } from 'klsm-api-library'
const sendRequset = () => {
CommonApi.sendRequset(params)
.then((res: any) => {
doSomething
}).catch(err: any) => {
doSomething
}
}
npm i klsm-api-library
0
0.0.9
ISC
5.55 kB
4