Просмотр исходного кода

产权交易倒计时

rongxin_prod
庞东旭 1 год назад
Родитель
Сommit
3911ecd8b8
1 измененных файлов: 3 добавлений и 0 удалений
  1. +3
    -0
      src/views/project/projectDetail.vue

+ 3
- 0
src/views/project/projectDetail.vue Просмотреть файл

@@ -1007,14 +1007,17 @@ export default {
destroyed () { destroyed () {
console.log('bbbbbbbbbb') console.log('bbbbbbbbbb')
clearInterval(this.timer); clearInterval(this.timer);
clearInterval(this.timeCount);
}, },
beforeDestory() { beforeDestory() {
clearInterval(this.timer) clearInterval(this.timer)
clearInterval(this.timeCount);
}, },
//离开页面清除定时器失效问题 //离开页面清除定时器失效问题
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
console.log("我离开了") console.log("我离开了")
clearInterval(this.timer) clearInterval(this.timer)
clearInterval(this.timeCount);
this.time = null; this.time = null;
next() next()
} }


Загрузка…
Отмена
Сохранить