diff --git a/docs/.vuepress/public/js/redirect.js b/docs/.vuepress/public/js/redirect.js index b9f1ea91abe0d4180af7d4640a6ad150ac72ad9e..34a5a5ec875d4e568b29c74533c397e83ddf2380 100644 --- a/docs/.vuepress/public/js/redirect.js +++ b/docs/.vuepress/public/js/redirect.js @@ -1,4 +1,4 @@ -var { host, pathname, search } = location +var { host, pathname, search, hash } = location var LOCAL_ZH = 'zh' var LOCAL_EN = 'en' var website_ZH_host = 'uniapp.dcloud.net.cn' @@ -14,7 +14,7 @@ if (host === 'uniapp.dcloud.io') { navigator.language.indexOf('zh') !== -1 ? website_ZH : website_EN; - window.location.href = website_finally + pathname + search; + window.location.href = website_finally + pathname + hash + search; } else { // overwrite referrer if (