Skip to content

Commit 07c8dc2

Browse files
committed
docs: update doc
1 parent 85774fb commit 07c8dc2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

site/components/GoogleAds.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
},
2020
render() {
2121
return (
22-
<div class="google-ads">
22+
<div class="google-ads" id="api">
2323
<ins
2424
ref="ins"
2525
class="adsbygoogle"

site/components/layout.vue

+2
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,11 @@ export default {
131131
const title = isCN ? cnTitle : usTitle;
132132
lis.push(<a-anchor-link key={id} href={`#${id}`} title={title} />);
133133
});
134+
const showApi = this.$route.path.indexOf('/components/') !== -1;
134135
return (
135136
<a-anchor offsetTop={100} class="demo-anchor">
136137
{lis}
138+
{showApi ? <a-anchor-link key="API" title="API" href="#api" /> : ''}
137139
</a-anchor>
138140
);
139141
},

0 commit comments

Comments
 (0)