ricky-util
v2.0.0
Published
一些常用的基础方法
Downloads
4
Readme
ricky-util Vue工具类
一些常用的基础方法
安装
npm install ricky-util
使用
main.js
import rickyUtil from 'ricky-util'
Vue.use(rickyUtil)
this.$logger.info(...args)
this.$logger.error(...args)
this.$api.setAllApi({get:{xxx:{url:'http://yyy'}}})
await this.$api.get.xxx()
取消
let res = this.$api.get.xxx([可选参数])
res.then(succFn).catch(failFn)
res.cancel(['可选'])