瀏覽代碼

注释vConsole

yunxing 4 年之前
父節點
當前提交
95a813f289
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 6 0
      src/App.vue
  2. 1 1
      src/main.ts

+ 6 - 0
src/App.vue

@@ -122,6 +122,8 @@ export default {
             })
         },
         getMap() {
+            console.log('%c时间:', 'color:blue;background:#fff')
+            console.time('蜂鸟下载,解析')
             window.fengmapData = new SFengParser(
                 'fengMap',
                 `${this.mapServerURL}/fmap/${this.fmapID}`,
@@ -141,6 +143,7 @@ export default {
                 window.fengmapData.loadTheme(`${this.mapServerURL}/webtheme/${this.fmapID}/${this.fmapID}.theme`).then((res) => {
                     this.SETHAVEFENGMAP(1)
                 })
+                console.timeEnd('蜂鸟下载,解析')
                 // 缓存楼层数据
                 if (dataArr.length) {
                     setFloor({ plazaId: this.plazaId }, dataArr)
@@ -209,6 +212,9 @@ export default {
                 window.fengmapData = null
             }
         },
+        $route(to, from) {
+            console.log(to, from)
+        },
     },
 }
 </script>

+ 1 - 1
src/main.ts

@@ -19,7 +19,7 @@ import VConsole from 'vconsole'
 // 开发环境引入 vConsole调试工具
 if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_RealEnv !== 'production') {
     // TODO: vConsole
-    new VConsole()
+    // new VConsole()
 }
 const ua = navigator.userAgent