This commit is contained in:
2023-11-07 17:15:33 +08:00
commit fe37e2e1df
418 changed files with 53012 additions and 0 deletions
@@ -0,0 +1,18 @@
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
}