Commit 286d6189 authored by 高宇's avatar 高宇

优化代码 状态问题

parent 9a3e7669
...@@ -48,6 +48,13 @@ Viewer.setDefaults({ ...@@ -48,6 +48,13 @@ Viewer.setDefaults({
} }
}) })
// 打包清除所有console.log
if (process.env.NODE_ENV === 'development') {
if (window) {
window.console.log = function() {}
}
}
// 全局方法挂载 // 全局方法挂载
Vue.prototype.$WebView = WebView Vue.prototype.$WebView = WebView
Vue.prototype.getDicts = getDicts Vue.prototype.getDicts = getDicts
......
This diff is collapsed.
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