Commit ad0c4ea3 authored by 张伯涛's avatar 张伯涛

打包清除所有console.log(可以选择哪个环境清空哪个环境不清空)

parent 1af8c4b4
......@@ -59,6 +59,13 @@ Viewer.setDefaults({
}
})
// 打包清除所有console.log
if (process.env.NODE_ENV === 'test') {
if (window) {
window.console.log = function() {}
}
}
// 全局方法挂载
Vue.prototype.$WebView = WebView
Vue.prototype.getDict = getDict
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment