From 21feb03eceebe0bf1548a5d7025abb6442d951cc Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 20 Apr 2024 17:18:58 +0800 Subject: [PATCH] remove ad --- src/components/ad/AdBanner.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/ad/AdBanner.vue b/src/components/ad/AdBanner.vue index ff3b7ec9..f6d3ff55 100644 --- a/src/components/ad/AdBanner.vue +++ b/src/components/ad/AdBanner.vue @@ -10,22 +10,22 @@ const props = defineProps({ }); const show = ref(false) -onMounted(() => { - const adClient = getClient(); - const adUnitId = getUnit(props.unit); - show.value = adClient !== undefined && adUnitId !== undefined; +// onMounted(() => { +// const adClient = getClient(); +// const adUnitId = getUnit(props.unit); +// show.value = adClient !== undefined && adUnitId !== undefined; - if(show.value) { - adClient.showBannerAd({ - adUnitId, - containerId: props.id, - }); - } -}); +// if(show.value) { +// adClient.showBannerAd({ +// adUnitId, +// containerId: props.id, +// }); +// } +// });