提交 11b5094c 编写于 作者: 杜庆泉's avatar 杜庆泉

Merge branch 'master' of gitee.com:dcloud/unidocs-zh into master

var { host, pathname, search } = location var { host, pathname, search, hash } = location
var LOCAL_ZH = 'zh' var LOCAL_ZH = 'zh'
var LOCAL_EN = 'en' var LOCAL_EN = 'en'
var website_ZH_host = 'uniapp.dcloud.net.cn' var website_ZH_host = 'uniapp.dcloud.net.cn'
...@@ -14,7 +14,7 @@ if (host === 'uniapp.dcloud.io') { ...@@ -14,7 +14,7 @@ if (host === 'uniapp.dcloud.io') {
navigator.language.indexOf('zh') !== -1 navigator.language.indexOf('zh') !== -1
? website_ZH ? website_ZH
: website_EN; : website_EN;
window.location.href = website_finally + pathname + search; window.location.href = website_finally + pathname + hash + search;
} else { } else {
// overwrite referrer // overwrite referrer
if ( if (
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册