created:
created () { let num = null this.mFun(num) },
methods:
methods:{ mFun(m){ if (m === null) { m = 0 } else { m++ } setTimeout(()=>{ console.log(m) this.mFun(m) },1000) }, }