Explorar o código

fix: eslint 报错

qinlaiqiao %!s(int64=4) %!d(string=hai) anos
pai
achega
573388bfcf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/views/login/scripts/rotateCanvas.ts

+ 2 - 2
src/views/login/scripts/rotateCanvas.ts

@@ -125,12 +125,12 @@ export default function useRotateCanvas() {
         );
       };
 
-      function animate() {
+      const animate = () => {
         ctx.clearRect(0, 0, CANVAS_W, CANVAS_H);
         rotateBlue && rotateBlue.draw();
         rotateYellow && rotateYellow.draw();
         requestAnimationFrame(animate);
-      }
+      };
 
       animate();
     }