liangjin
2021-04-09 c0d97faf6b21c033a0a11f0b21083eac9dc1b82e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * @Author: 小明丶
 * @Date: 2020-09-03 10:32:28
 * @LastEditors: 小明丶
 * @LastEditTime: 2020-09-03 10:53:59
 * @Description: 是否显示控制台打印值,用this.$log()打印到控制台 DEBUG=true为调试模式输出到控制台,DEBUG=false不输出到控制台
 */
const DEBUG = true
var log = function(...araguments){
    if(DEBUG){
        var arr = Array.prototype.slice.call(araguments)
        console.log.apply(console,arr)
    }
}
export default {
    install(Vue,options){
        Vue.prototype.$log = log;
    }
}