@@ -14,6 +14,8 @@ import { isZhCN } from '../util';
14
14
import { Provider , create } from ' ../../components/_util/store' ;
15
15
import NProgress from ' nprogress' ;
16
16
import MobileMenu from ' ../../components/vc-drawer/src' ;
17
+ import GoogleAdsTop from ' ./GoogleAdsTop' ;
18
+ import GoogleAds from ' ./GoogleAds' ;
17
19
18
20
const docsList = [
19
21
{ key: ' introduce' , enTitle: ' Ant Design of Vue' , title: ' Ant Design of Vue' },
@@ -129,11 +131,9 @@ export default {
129
131
const title = isCN ? cnTitle : usTitle;
130
132
lis .push (< a- anchor- link key= {id} href= {` #${ id} ` } title= {title} / > );
131
133
});
132
- const showApi = this .$route .path .indexOf (' /components/' ) !== - 1 ;
133
134
return (
134
135
< a- anchor offsetTop= {100 } class = " demo-anchor" >
135
136
{lis}
136
- {showApi ? < a- anchor- link key= " API" title= " API" href= " #API" / > : ' ' }
137
137
< / a- anchor>
138
138
);
139
139
},
@@ -240,7 +240,7 @@ export default {
240
240
}
241
241
const config = AllDemo[titleMap[reName]];
242
242
this .resetDocumentTitle (config, reName, isCN);
243
- const { isMobile } = this ;
243
+ const { isMobile , $route } = this ;
244
244
return (
245
245
< div class = " page-wrapper" >
246
246
< Header searchData= {searchData} name= {name} / >
@@ -294,10 +294,11 @@ export default {
294
294
)}
295
295
< a- col xxl= {20 } xl= {19 } lg= {19 } md= {18 } sm= {24 } xs= {24 }>
296
296
< section class = " main-container main-container-component" >
297
- < CarbonAds isMobile= {isMobile} / >
297
+ < GoogleAdsTop key= {` GoogleAdsTop_${ $route .path } ` } / >
298
+ {! isMobile ? < CarbonAds / > : null }
298
299
< GeektimeAds isMobile= {isMobile} / >
299
300
{! isMobile ? (
300
- < div class = " toc-affix" style= " width: 150px;" >
301
+ < div class = {[ ' toc-affix' , isCN ? ' toc-affix-cn ' : ' ' ]} style= " width: 150px;" >
301
302
{this .getSubMenu (isCN)}
302
303
< / div>
303
304
) : null }
@@ -330,6 +331,7 @@ export default {
330
331
],
331
332
}}
332
333
>< / router- view>
334
+ < GoogleAds key= {` GoogleAds_${ $route .path } ` } / >
333
335
< / div>
334
336
) : (
335
337
' '
0 commit comments