docs: fix promote link

This commit is contained in:
afc163 2019-11-23 23:28:18 +08:00
parent 041b7fa9e2
commit fb66bce007
No known key found for this signature in database
GPG Key ID: 5F00908D72002306

View File

@ -97,14 +97,14 @@ const Banner = ({ isMobile }) => {
<FormattedMessage id="app.home.recommend" />
</Divider>
<a
href="https://antv.vision?from=antd"
href={`https://antv.vision/${isZhCN ? 'zh' : 'en'}?from=antd`}
target="_blank"
rel="noopener noreferrer"
onClick={() => {
if (window.gtag) {
window.gtag('event', '点击', {
event_category: '首页推广',
event_label: 'https://antv.vision?from=antd',
event_label: `https://antv.vision/${isZhCN ? 'zh' : 'en'}?from=antd`,
});
}
}}