@@ -10,7 +10,7 @@ import sortBy from 'lodash/sortBy';
1010import { isZhCN } from ' ../util' ;
1111import { Provider , create } from ' ../../components/_util/store' ;
1212import NProgress from ' nprogress' ;
13- import MobileMenu from ' ../../components/vc-drawer/src' ;
13+ import MobileMenu from ' ../../components/vc-drawer/src' ;
1414
1515const docsList = [
1616 { key: ' introduce' , enTitle: ' Ant Design of Vue' , title: ' Ant Design of Vue' },
@@ -155,6 +155,15 @@ export default {
155155 mountedCallback () {
156156 NProgress .done ();
157157 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) {}
158167 },
159168 },
160169
@@ -224,7 +233,7 @@ export default {
224233 }
225234 const config = AllDemo[titleMap[reName]];
226235 this .resetDocumentTitle (config, reName, isCN);
227- const { showSideBars , isMobile } = this ;
236+ const { isMobile } = this ;
228237 return (
229238 < div class = ' page-wrapper' >
230239 < Header searchData= {searchData} name= {name}/ >
0 commit comments