mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-29 18:57:36 +08:00
Chore: suggestJump only in production mode (#11082)
This commit is contained in:
parent
6f2f7aed47
commit
a318c5701e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user