Skip to content

Commit

Permalink
remove ad
Browse files Browse the repository at this point in the history
  • Loading branch information
liangping committed Apr 20, 2024
1 parent 603d7ce commit 21feb03
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/components/ad/AdBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
// });
// }
// });
</script>
<template>
<div v-show="show" class="grid justify-items-center overflow-auto">
<div :id="id" class="mt-6"></div>

</div>
</template>

0 comments on commit 21feb03

Please sign in to comment.