@@ -10,7 +10,7 @@ import sortBy from 'lodash/sortBy';
10
10
import { isZhCN } from ' ../util' ;
11
11
import { Provider , create } from ' ../../components/_util/store' ;
12
12
import NProgress from ' nprogress' ;
13
- import MobileMenu from ' ../../components/vc-drawer/src' ;
13
+ import MobileMenu from ' ../../components/vc-drawer/src' ;
14
14
15
15
const docsList = [
16
16
{ key: ' introduce' , enTitle: ' Ant Design of Vue' , title: ' Ant Design of Vue' },
@@ -155,6 +155,15 @@ export default {
155
155
mountedCallback () {
156
156
NProgress .done ();
157
157
document .documentElement .scrollTop = 0 ;
158
+ try {
159
+ document .getElementById (' ad' ).innerHTML = ' ' ;
160
+ const src = ' //cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio' ;
161
+ const hm = document .createElement (' script' );
162
+ hm .src = src;
163
+ hm .id = ' _carbonads_js' ;
164
+ const s = document .getElementById (' ad' );
165
+ s .append (hm);
166
+ } catch (error) {}
158
167
},
159
168
},
160
169
@@ -224,7 +233,7 @@ export default {
224
233
}
225
234
const config = AllDemo[titleMap[reName]];
226
235
this .resetDocumentTitle (config, reName, isCN);
227
- const { showSideBars , isMobile } = this ;
236
+ const { isMobile } = this ;
228
237
return (
229
238
< div class = ' page-wrapper' >
230
239
< Header searchData= {searchData} name= {name}/ >
0 commit comments