clean
Former-commit-id: f8439300b0e94fc7f983de902e518a39f4a232d0
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user