| | |
| | | </template> |
| | | |
| | | <script setup name="AppMain" lang="ts"> |
| | | import useTagsViewStore from '@/store/modules/tagsView'; |
| | | import useSettingsStore from '@/store/modules/settings'; |
| | | import useTagsViewStore from '@/store/modules/tagsView'; |
| | | |
| | | import IframeToggle from './IframeToggle/index.vue'; |
| | | const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
| | | const tagsViewStore = useTagsViewStore(); |
| | |
| | | const animante = ref<string>(''); |
| | | const animationEnable = ref(useSettingsStore().animationEnable); |
| | | watch( |
| | | () => useSettingsStore().animationEnable, |
| | | () => tagsViewStore.cachedViews, |
| | | (val) => { |
| | | console.log(val); |
| | | }, |
| | | { deep: true } |
| | | ); |
| | | watch( |
| | | () => useSettingsStore().animationEnable, |
| | | (val: boolean) => { |
| | | animationEnable.value = val; |
| | | if (val) { |
| | | animante.value = proxy?.animate.animateList[Math.round(Math.random() * proxy?.animate.animateList.length)] as string; |