Former-commit-id: f8439300b0e94fc7f983de902e518a39f4a232d0
This commit is contained in:
liyang
2019-05-07 09:24:56 +08:00
parent c20369f365
commit 46bc6ca451
167 changed files with 0 additions and 34196 deletions
-21
View File
@@ -1,21 +0,0 @@
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)
}
}
}
}