diff --git a/pages/API/cancel-animation-frame/cancel-animation-frame.uvue b/pages/API/cancel-animation-frame/cancel-animation-frame.uvue index dcc81c67d56c85d7882f532d6184603c82879594..2f0062c5b0bfb0796aaf0c633284c52f9162d912 100644 --- a/pages/API/cancel-animation-frame/cancel-animation-frame.uvue +++ b/pages/API/cancel-animation-frame/cancel-animation-frame.uvue @@ -23,13 +23,13 @@ }, methods: { startRequestAnimationFrame() { - this.taskId = uni.requestAnimationFrame((_ : number) => { + this.taskId = requestAnimationFrame((_ : number) => { this.testFrameCount++ this.startRequestAnimationFrame() }) }, stopRequestAnimationFrame() { - uni.cancelAnimationFrame(this.taskId) + cancelAnimationFrame(this.taskId) } } } diff --git a/pages/API/request-animation-frame/request-animation-frame.uvue b/pages/API/request-animation-frame/request-animation-frame.uvue index 04564a15645e98b891d1a452eff56c4151ff8640..825804034ff713058c26f1c917a625e0c1a0bce3 100644 --- a/pages/API/request-animation-frame/request-animation-frame.uvue +++ b/pages/API/request-animation-frame/request-animation-frame.uvue @@ -16,7 +16,7 @@ }, methods: { startRequestAnimationFrame() { - uni.requestAnimationFrame((_ : number) => { + requestAnimationFrame((_ : number) => { this.testFrameCount++; }) }