金久信后台管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
359 B

let debug = process.env.NODE_ENV !== 'production';
const install = Vue => {
let vk = Vue.prototype ? Vue.prototype.vk : Vue.config.globalProperties.vk;
if (vk) {
vk.log = console.log;
if (typeof vk.getConfig === "function") {
debug = vk.getConfig().debug;
}
if(!debug){
console.log = function(...obj){};
}
}
}
export default {
install
}