This commit is contained in:
Zheng Jie
2022-07-29 17:39:32 +08:00
parent 5c82de2403
commit ed9df3b2ff

View File

@@ -6,6 +6,7 @@
</keep-alive> </keep-alive>
</transition> </transition>
<div <div
v-if="renderAd"
class="wwads-cn wwads-vertical" class="wwads-cn wwads-vertical"
data-id="148" data-id="148"
style="z-index:10000;position:fixed;bottom:33px;right:5px;max-width:200px;padding:10px;border-radius:5px;" style="z-index:10000;position:fixed;bottom:33px;right:5px;max-width:200px;padding:10px;border-radius:5px;"
@@ -21,6 +22,11 @@
<script> <script>
export default { export default {
name: 'AppMain', name: 'AppMain',
data() {
return {
renderAd: true
}
},
computed: { computed: {
cachedViews() { cachedViews() {
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews
@@ -28,6 +34,14 @@ export default {
key() { key() {
return this.$route.path return this.$route.path
} }
},
watch: {
'$route.path': {
handler: function() {
this.renderAd = false
this.renderAd = true
}
}
} }
} }
</script> </script>