diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index 0237049..bec87bf 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -6,6 +6,7 @@
export default {
name: 'AppMain',
+ data() {
+ return {
+ renderAd: true
+ }
+ },
computed: {
cachedViews() {
return this.$store.state.tagsView.cachedViews
@@ -28,6 +34,14 @@ export default {
key() {
return this.$route.path
}
+ },
+ watch: {
+ '$route.path': {
+ handler: function() {
+ this.renderAd = false
+ this.renderAd = true
+ }
+ }
}
}