(component): update

This commit is contained in:
就眠儀式
2022-09-28 19:04:14 +08:00
parent c2c8416233
commit 9a15eb507a
2 changed files with 5 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ const state = reactive({
height: 40,
});
var timer:any;
var timer: any;
// 初始化 animation 各项参数
const initAnimation = () => {
@@ -126,9 +126,9 @@ const initAnimation = () => {
// 清除定时器
onUnmounted(() => {
clearInterval(timer);
timer = null;
})
clearInterval(timer);
timer = null;
});
// 计算 animation 滚动时长
const computeAnimationTime = () => {