提交 91ac291d 编写于 作者: D DCloud_LXH

fix: 跳转网址后,search 参数丢失

上级 23c8a758
var { host, pathname } = location var { host, pathname, search } = 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'
...@@ -13,5 +13,5 @@ if (host === 'uniapp.dcloud.io') { ...@@ -13,5 +13,5 @@ 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; window.location.href = website_finally + pathname + search;
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册