update
This commit is contained in:
@@ -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
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user