Explorar el Código

Chore: suggestJump only in production mode (#11082)

Carson hace 7 años
padre
commit
a318c5701e
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;