Skip to content

Commit

Permalink
fix: ins Google ad width
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiaa12 committed Aug 21, 2023
1 parent 235f9e9 commit 9d2f5e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/layout/index.vue
Expand Up @@ -27,7 +27,7 @@
</template>
<template #doc-after>
<ins class="adsbygoogle"
style="display:block"
style="display:block; margin: 1em auto;"
data-ad-client="ca-pub-6209757986574246"
data-ad-slot="9323844417"
data-ad-format="auto"
Expand Down Expand Up @@ -69,16 +69,16 @@ onMounted(async () => {
// eslint-disable-next-line no-import-assign
script = await import("busuanzi.pure.js")
// google 文章内嵌广告
;((window as any).adsbygoogle = (window as any).adsbygoogle || []).push({})
})
watch(
() => route.path,
() => {
// 访问量统计
script?.fetch()
// google 文章内嵌广告
;((window as any).adsbygoogle = (window as any).adsbygoogle || []).push({})
},
{
immediate: true,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/components/game/GameList.vue
Expand Up @@ -17,7 +17,7 @@
alignment="stretch"
>
<ins class="adsbygoogle"
style="display:inline-block;width:274px;height:353px"
style="display:inline-block;width:258px;height:337px"
data-ad-client="ca-pub-6209757986574246"
data-ad-slot="8308493259">
</ins>
Expand Down

0 comments on commit 9d2f5e5

Please sign in to comment.