Переглянути джерело

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;