|
|
@@ -204,7 +204,9 @@ export default {
|
|
|
},
|
|
|
destroyed(){
|
|
|
|
|
|
- clearInterval(this.INT)
|
|
|
+ if(this.INT){
|
|
|
+ clearInterval(this.INT)
|
|
|
+ }
|
|
|
|
|
|
// #ifdef APP-PLUS
|
|
|
//避免重复,每次进来先移除全局自定义事件监听器
|
|
|
@@ -340,7 +342,9 @@ export default {
|
|
|
let that = this
|
|
|
this.beginCount = Number(this.orderInfo.beginCount)
|
|
|
if(this.beginCount > 0 && this.orderInfo.fromType ==4){
|
|
|
- clearInterval(this.INT)
|
|
|
+ if(this.INT){
|
|
|
+ clearInterval(this.INT)
|
|
|
+ }
|
|
|
that.INT = setInterval(function(){
|
|
|
that.beginCount--
|
|
|
if(that.beginCount <= 0){
|