2.0.0 • Published 4 years ago

ricky-util v2.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

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(['可选'])