chore: update (#561)

This commit is contained in:
zazzaz 2020-11-09 14:54:18 +08:00 committed by GitHub
parent 023bafffca
commit bdd287770a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ export default {
const href = location.href
const preferGithub = localStorage.getItem('PREFER_GITHUB')
const cnHref = href.indexOf('eleme.cn') > -1 || href.indexOf('element-cn') > -1 || href.indexOf('element.faas') > -1
const cnHref = href.indexOf('element-plus.gitee.io') > -1
if (cnHref || preferGithub) return
setTimeout(() => {
if (this.lang !== Language.CN) return