diff --git a/src/views/project/projectDetail.vue b/src/views/project/projectDetail.vue index 4a82458d..37cd43d5 100644 --- a/src/views/project/projectDetail.vue +++ b/src/views/project/projectDetail.vue @@ -272,7 +272,7 @@ export default { process:"", tip:"", btnMsg:"", - time:10000, + time:null, timeMsg:"", isSignup:false, showBtn:false, @@ -947,9 +947,10 @@ export default { clearInterval(this.timer) }, //离开页面清除定时器失效问题 - beforeRouteLeave (to, from, next) { + beforeRouteLeave(to, from, next) { console.log("我离开了") clearInterval(this.timer) + this.time = null; next() } };