Skip to content

Commit

Permalink
fix: ad error
Browse files Browse the repository at this point in the history
  • Loading branch information
woai3c committed Dec 28, 2022
1 parent 46b13b7 commit 48a45a9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/.vuepress/components/AD.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
</template>

<script>
const adScript = document.querySelector('#ad-script')
if (!adScript) {
const script = document.createElement('script')
script.id = 'ad-script'
script.async = true
script.src = 'https://cdn.wwads.cn/js/makemoney.js'
document.head.appendChild(script)
export default {
mounted() {
const adScript = document.querySelector('#ad-script')
if (!adScript) {
const script = document.createElement('script')
script.id = 'ad-script'
script.async = true
script.src = 'https://cdn.wwads.cn/js/makemoney.js'
document.head.appendChild(script)
}
}
}
</script>

0 comments on commit 48a45a9

Please sign in to comment.