From 325c8652d2312e820e11ffa59b43432f3848b037 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Mon, 1 Aug 2022 18:07:27 +0800 Subject: [PATCH] update --- src/components/Ad/index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Ad/index.vue b/src/components/Ad/index.vue index 0e0e276..e298ee0 100644 --- a/src/components/Ad/index.vue +++ b/src/components/Ad/index.vue @@ -16,13 +16,13 @@ export default { }, created() { const _this = this - const oScript = document.createElement('script') - oScript.type = 'text/javascript' - oScript.src = '//cdn.wwads.cn/js/makemoney.js' - document.body.appendChild(oScript) - setTimeout(function() { - _this.show = true - }, 650) + if (window._AdBlockInit === undefined) { + _this.show = false + } else { + setTimeout(function() { + _this.show = true + }, 650) + } } }