兰宝车间质量管理系统-前端
LiuHao
2024-04-16 1d7c3da86b32f662befaeeea25f52405fd10a305
src/layout/components/AppMain.vue
@@ -23,8 +23,15 @@
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;