mirror of https://github.com/ElemeFE/element
Chore: suggestJump only in production mode (#11082)
parent
6f2f7aed47
commit
a318c5701e
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue