This commit is contained in:
Zheng Jie
2022-08-22 09:43:25 +08:00
parent f744856aff
commit 0551231c45
2 changed files with 0 additions and 46 deletions

View File

@@ -1,30 +0,0 @@
<template>
<div
v-if="show"
id="ww-container"
class="wwads-cn wwads-vertical"
data-id="148"
style="z-index:10000;position:fixed;bottom:33px;right:1px;max-width:200px;padding: 12px 10px;border-radius:5px;"
/>
</template>
<script>
export default {
data() {
return {
show: true
}
},
created() {
if (window._AdBlockInit === undefined) {
this.show = false
}
}
}
</script>
<style lang="scss">
.wwads-vertical .wwads-poweredby {
display: none !important;
}
</style>

View File

@@ -23,22 +23,6 @@ export default {
key() {
return this.$route.path
}
// watch: {
// '$route.path': {
// handler: function() {
// // define ads element
// const ads = document.getElementById('ww-container')
// // ad parent node
// const prn = ads.parentNode
// // lets clone ads block
// const cln = ads.cloneNode(true)
// // remove the current ads block completely
// prn.removeChild(ads)
// // append a newly cloned one
// prn.appendChild(cln)
// }
// }
// }
}
}
</script>