提交 71ef9514 编写于 作者: D DCloud_LXH

chore: overwrite referrer

上级 f4e81004
...@@ -14,4 +14,16 @@ if (host === 'uniapp.dcloud.io') { ...@@ -14,4 +14,16 @@ if (host === 'uniapp.dcloud.io') {
? website_ZH ? website_ZH
: website_EN; : website_EN;
window.location.href = website_finally + pathname + search; window.location.href = website_finally + pathname + search;
} else {
// overwrite referrer
if (
search.indexOf('hmsr=vueen') !== -1 &&
document.referrer === 'https://uniapp.dcloud.io/'
) {
Object.defineProperty(
document,
'referrer',
{ value: 'https://vuejs.org/', configurable: true }
);
}
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册