We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85774fb commit 07c8dc2Copy full SHA for 07c8dc2
site/components/GoogleAds.vue
@@ -19,7 +19,7 @@ export default {
19
},
20
render() {
21
return (
22
- <div class="google-ads">
+ <div class="google-ads" id="api">
23
<ins
24
ref="ins"
25
class="adsbygoogle"
site/components/layout.vue
@@ -131,9 +131,11 @@ export default {
131
const title = isCN ? cnTitle : usTitle;
132
lis.push(<a-anchor-link key={id} href={`#${id}`} title={title} />);
133
});
134
+ const showApi = this.$route.path.indexOf('/components/') !== -1;
135
136
<a-anchor offsetTop={100} class="demo-anchor">
137
{lis}
138
+ {showApi ? <a-anchor-link key="API" title="API" href="#api" /> : ''}
139
</a-anchor>
140
);
141
0 commit comments