快速打印log插件和记录log插件
Former-commit-id: c60fd22146486b9ae40a017f54eac22861d63cfe [formerly c60fd22146486b9ae40a017f54eac22861d63cfe [formerly c60fd22146486b9ae40a017f54eac22861d63cfe [formerly c60fd22146486b9ae40a017f54eac22861d63cfe [formerly b19f1dba3b8716c4ec0693a83882bf9f0c10ee3e [formerly 163a31502dcf1a0e10a73b65e29e7260d36afcc9]]]]] Former-commit-id: e5b3780565f7a1645b4fe207c41035513515ca0b Former-commit-id: ef544bb7604fc43b2b88c3890e4b3cc799df7845 Former-commit-id: 915e4dc616ce563853356e5839acd156fd4fd69f [formerly e920289a8782940d1b5c3f498afd483c364462a0] Former-commit-id: 0085d6c633ce61d78083afdfbff15a2a77d5db42 Former-commit-id: 1eea98ae975cb2f3d79a81eaf39e7b3865264f82 Former-commit-id: 1cf7126ab22e15afbf99c7bbb1e250e6dfcae5e9 Former-commit-id: a680edf65c0ce825cc494e085e9f0e90f2775127 Former-commit-id: c400c163f351492944c53fbd1a59e27c4bb25fa5
This commit is contained in:
16
src/plugin/log/index.js
Normal file
16
src/plugin/log/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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) {
|
||||
store.commit('d2adminLogAdd', {
|
||||
type: 'log',
|
||||
info
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user