diff --git a/pages/API/animation-frame/animation-frame.uvue b/pages/API/animation-frame/animation-frame.uvue index 2501cb8069a2f27e5230efc58c670c76bf5a075a..4d1ea94ceb0197201a304c1d8f9d79328f3b0897 100644 --- a/pages/API/animation-frame/animation-frame.uvue +++ b/pages/API/animation-frame/animation-frame.uvue @@ -15,9 +15,9 @@ return { title: 'AnimationFrame', taskId: 0, + fps: 0, lastTime: 0, frameCount: 0, - fps: 0, testFrameCount: 0 } }, @@ -40,7 +40,10 @@ this.startRequestAnimationFrame() }) }, - stopRequestAnimationFrame() { + stopRequestAnimationFrame() { + this.fps = 0 + this.lastTime = 0 + this.frameCount = 0 cancelAnimationFrame(this.taskId) } }