瀏覽代碼

Chore: suggestJump only in production mode (#11082)

Carson 7 年之前
父節點
當前提交
a318c5701e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/app.vue

+ 2 - 0
examples/app.vue

@@ -227,6 +227,8 @@
 
     methods: {
       suggestJump() {
+        if (process.env.NODE_ENV !== 'production') return;
+
         const href = location.href;
         const preferGithub = localStorage.getItem('PREFER_GITHUB');
         if (href.indexOf('element-cn') > -1 || preferGithub) return;