广告优化,加入插件版本使用统计

This commit is contained in:
xu_yanfeng
2025-01-22 10:46:38 +08:00
parent 7382afc602
commit 342d8b6f1c
4 changed files with 16 additions and 2 deletions

View File

@@ -80,6 +80,9 @@ export default defineComponent({
// 单位分钟
const diff = (Date.now() - time) / 1000 / 60;
isShow.value = diff >= showDuration;
if (isShow.value && ads.value.length) {
ga(GA_EventName.ShowAd);
}
}
}
onUnmounted(() => {