From c25842a0e5cb8d1c4b9ee80e38dbfc4192b95adb Mon Sep 17 00:00:00 2001 From: LiuHao <liuhaoai545@gmail> Date: 星期一, 17 四月 2023 20:50:00 +0800 Subject: [PATCH] remove console.log --- src/layout/components/AppMain.vue | 53 +++++++++++++++++++---------------------------------- 1 files changed, 19 insertions(+), 34 deletions(-) diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index e600479..463224d 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -1,10 +1,17 @@ -<script lang="ts"> -export default { - name: 'AppMin' -} -</script> +<template> + <section class="app-main"> + <router-view v-slot="{ Component, route }"> + <transition :enter-active-class="animante" mode="out-in"> + <keep-alive :include="tagsViewStore.cachedViews"> + <component v-if="!route.meta.link" :is="Component" :key="route.path" /> + </keep-alive> + </transition> + </router-view> + <iframe-toggle /> + </section> +</template> -<script setup lang="ts"> +<script setup name="AppMain" lang="ts"> import useTagsViewStore from '@/store/modules/tagsView'; import useSettingsStore from '@/store/modules/settings'; import IframeToggle from './IframeToggle/index.vue' @@ -16,27 +23,14 @@ const animante = ref<string>(''); const animationEnable = ref(useSettingsStore().animationEnable); watch(()=> useSettingsStore().animationEnable, (val) => { - animationEnable.value = val; - if (val) { - animante.value = proxy?.animate.animateList[Math.round(Math.random() * proxy?.animate.animateList.length)] as string; - } else { - animante.value = proxy?.animate.defaultAnimate as string; - } + animationEnable.value = val; + if (val) { + animante.value = proxy?.animate.animateList[Math.round(Math.random() * proxy?.animate.animateList.length)] as string; + } else { + animante.value = proxy?.animate.defaultAnimate as string; + } }, { immediate: true }); </script> - -<template> - <section class="app-main"> - <router-view v-slot="{ Component, route }"> - <transition :enter-active-class="animante" mode="out-in"> - <keep-alive :include="tagsViewStore.cachedViews"> - <component v-if="!route.meta.link" :is="Component" :key="route.path" /> - </keep-alive> - </transition> - </router-view> - <iframe-toggle /> - </section> -</template> <style lang="scss" scoped> .app-main { @@ -59,15 +53,6 @@ .fixed-header+.app-main { padding-top: 84px; - } -} -</style> - -<style lang="scss"> -// fix css style bug in open el-dialog -.el-popup-parent--hidden { - .fixed-header { - padding-right: 17px; } } </style> -- Gitblit v1.9.3