新版文件

Former-commit-id: f8cb004bc9c5fe881993aec4bc46f696bbc5a2c8
This commit is contained in:
liyang
2018-08-22 15:15:20 +08:00
parent e4a16cf07e
commit b832835608
490 changed files with 56990 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
import store from '@/store'
import util from '@/libs/util'
export default {
install (Vue, options) {
// 快速打印 log
Vue.prototype.$log = util.log
// 快速记录日志
Vue.prototype.$logAdd = function (info, show = true) {
// store 赋值
store.dispatch('d2admin/log/add', {
type: 'log',
info
})
// 显示在控制台
if (show && process.env.NODE_ENV === 'development') {
util.log.default(info)
}
}
}
}