diff --git a/src/views/popup/left.vue b/src/views/popup/left.vue index bb37a71..d35b6b2 100644 --- a/src/views/popup/left.vue +++ b/src/views/popup/left.vue @@ -52,6 +52,7 @@ components: { AreaBar1, StaffLine1 }, data() { return { + timer: null, titleImg: require('@/assets/popup/title.png'), // 背景图片 titleAll: require('@/assets/popup/title-all.png'),// 背景图片 list: { @@ -64,8 +65,14 @@ } } }, - created() { - this.initData() + beforeDestroy() { + clearInterval(this.timer) + this.timer = null + }, + mounted() { + this.timer = setInterval(() => { + this.initData() + }, 60000) }, methods: { initData() {