This commit is contained in:
Zheng Jie
2022-07-29 17:46:31 +08:00
parent d508df1cc1
commit 197d557e87

View File

@@ -6,7 +6,7 @@
</keep-alive> </keep-alive>
</transition> </transition>
<div <div
v-if="renderAd" :key="adKey"
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;"
@@ -20,12 +20,11 @@
</template> </template>
<script> <script>
import Vue from 'vue'
export default { export default {
name: 'AppMain', name: 'AppMain',
data() { data() {
return { return {
renderAd: true adKey: 'def'
} }
}, },
computed: { computed: {
@@ -39,11 +38,7 @@ export default {
watch: { watch: {
'$route.path': { '$route.path': {
handler: function() { handler: function() {
this.renderAd = false this.key = this.$route.path
const _this = this
Vue.nextTick(function() {
_this.renderAd = true
})
} }
} }
} }