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) + } } }