File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import axios from 'axios';
3
3
const carbonUrls = {
4
4
' vuecomponent.github.io' : ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio' ,
5
5
' tangjinzhou.gitee.io' : ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=tangjinzhougiteeio' ,
6
- ' antdesignvue .gitee.io' : ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio' ,
7
- ' vue.ant.design' : ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio ' ,
6
+ ' ant-design-vue .gitee.io' : ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio' ,
7
+ ' vue.ant.design' : ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign ' ,
8
8
};
9
9
const carbonUrl = carbonUrls[location .host ] || ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio' ;
10
10
export default {
Original file line number Diff line number Diff line change 18
18
</ style >
19
19
< script >
20
20
var _hmt = _hmt || [ ] ;
21
- var isGithub = location . host . indexOf ( 'github' ) !== - 1 ;
22
- var src = isGithub ? 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867' : 'https://hm.baidu.com/hm.js?1564b57c5b8f74933e4fedca9dc75b0d' ;
21
+ var srcMap = {
22
+ 'vuecomponent.github.io' : 'https://hm.baidu.com/hm.js?b3ef688fa86bfb75027f1b410180a867' ,
23
+ 'tangjinzhou.gitee.io' : 'https://hm.baidu.com/hm.js?1564b57c5b8f74933e4fedca9dc75b0d' ,
24
+ 'ant-design-vue.gitee.io' : 'https://hm.baidu.com/hm.js?1e30265f06f76fabfcdb7ed272017441' ,
25
+ 'vue.ant.design' : 'https://hm.baidu.com/hm.js?f0ba868f114e674b816b4880f7525811' ,
26
+ } ;
27
+ var src = srcMap [ location . host ] ;
23
28
( function ( ) {
24
29
var hm = document . createElement ( 'script' ) ;
25
30
hm . src = src ;
You can’t perform that action at this time.
0 commit comments