瀏覽代碼

fix: 开发环境报错问题

cuiyalong 3 年之前
父節點
當前提交
20f5d12d38
共有 1 個文件被更改,包括 1 次插入11 次删除
  1. 1 11
      src/main.js

+ 1 - 11
src/main.js

@@ -20,20 +20,10 @@ Vue.prototype.$alert = MessageBox.alert
 Vue.prototype.$confirm = MessageBox.confirm
 Vue.config.productionTip = false
 
-// 正式环境下屏蔽console.log(主应用已屏蔽)
-// if (process.env.NODE_ENV === 'production') {
-//   const print = window.console.log
-//   if (window.localStorage.getItem('log') === '1') {
-//     window.console.log = print
-//   } else {
-//     window.console.log = () => null
-//   }
-// } else {}
-
 export const { bootstrap, mount, unmount } = easySubAppRegister({
   Vue,
   router,
   store,
   App,
   el: '#app'
-})
+}) || {}