From ed9df3b2ff76c20b25940ada134a881b5671d173 Mon Sep 17 00:00:00 2001 From: Zheng Jie <201507802@qq.com> Date: Fri, 29 Jul 2022 17:39:32 +0800 Subject: [PATCH] update --- src/layout/components/AppMain.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 + } + } } }