fix 修复 拼写错误

This commit is contained in:
疯狂的狮子Li 2025-02-21 17:07:23 +08:00
parent b474a1cffc
commit 74c29dc13e

View File

@ -24,16 +24,16 @@ const route = useRoute();
const tagsViewStore = useTagsViewStore(); const tagsViewStore = useTagsViewStore();
// //
const animante = ref<string>(''); const animate = ref<string>('');
const animationEnable = ref(useSettingsStore().animationEnable); const animationEnable = ref(useSettingsStore().animationEnable);
watch( watch(
() => useSettingsStore().animationEnable, () => useSettingsStore().animationEnable,
(val: boolean) => { (val: boolean) => {
animationEnable.value = val; animationEnable.value = val;
if (val) { if (val) {
animante.value = proxy?.animate.animateList[Math.round(Math.random() * proxy?.animate.animateList.length)] as string; animate.value = proxy?.animate.animateList[Math.round(Math.random() * proxy?.animate.animateList.length)] as string;
} else { } else {
animante.value = proxy?.animate.defaultAnimate as string; animate.value = proxy?.animate.defaultAnimate as string;
} }
}, },
{ immediate: true } { immediate: true }