Эх сурвалжийг харах

Chore: suggestJump only in production mode (#11082)

Carson 7 жил өмнө
parent
commit
a318c5701e

+ 2 - 0
examples/app.vue

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