diff --git a/docs/.vuepress/public/js/redirect.js b/docs/.vuepress/public/js/redirect.js index 6aa4e6eab4bf91ecd0461fe5a78fc8199705f957..a0dd8663613d52042938f486dcce0206110236a2 100644 --- a/docs/.vuepress/public/js/redirect.js +++ b/docs/.vuepress/public/js/redirect.js @@ -1,4 +1,4 @@ -var { host, pathname } = location +var { host, pathname, search } = location var LOCAL_ZH = 'zh' var LOCAL_EN = 'en' var website_ZH_host = 'uniapp.dcloud.net.cn' @@ -13,5 +13,5 @@ if (host === 'uniapp.dcloud.io') { navigator.language.indexOf('zh') !== -1 ? website_ZH : website_EN; - window.location.href = website_finally + pathname; + window.location.href = website_finally + pathname + search; } \ No newline at end of file