From fa8ac9493124f995049a7764291adfc4fb2acf84 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Fri, 9 Sep 2022 11:27:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/public/js/redirect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vuepress/public/js/redirect.js b/docs/.vuepress/public/js/redirect.js index b9f1ea91a..34a5a5ec8 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 ( -- GitLab