Commit 2f865155 authored by June's avatar June

fixed:处理用来箭头函数多余的this指向

parent 98f2b622
......@@ -8,7 +8,7 @@ import store from "@/store/index.js"
*/
export function timerFn(num = 60, cb) {
let timer = setInterval(() => {
cb && isFunction(cb) && cb.call(this, num)
cb && isFunction(cb) && cb(num)
num --
if(num < 0) {
clearInterval(timer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment