Commit a318c570 authored by Carson's avatar Carson Committed by 杨奕

Chore: suggestJump only in production mode (#11082)

parent 6f2f7aed
...@@ -227,6 +227,8 @@ ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment