From 00d0b83bde14f733c4698c97dbc04f40680f6909 Mon Sep 17 00:00:00 2001 From: gerson <1405270578@qq.com> Date: 星期四, 13 二月 2025 22:38:35 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/IEE/Web.V1 --- src/App.vue | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/App.vue b/src/App.vue index 88e71f5..2731082 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,17 +1,22 @@ <template> <div class="h-full bg-gray-50 flex flex-col"> - <AppHeader class="flex-0" /> - <div class="flex-auto !overflow-y-auto bg-[#f4f4f4]" ref="containerRef"> - <div class="w-[63%] mx-auto"> - <router-view></router-view> + <template v-if="!isLoginPage"> + <AppHeader class="flex-0" /> + <div class="flex-auto !overflow-y-auto bg-[#f4f4f4]" ref="containerRef"> + <div class="w-[63%] mx-auto"> + <router-view></router-view> + </div> + <AppFooter></AppFooter> </div> - <AppFooter></AppFooter> - </div> + </template> + <template v-else> + <router-view></router-view> + </template> </div> </template> <script setup lang="ts"> -import { ref, watch } from 'vue'; +import { computed, ref, watch } from 'vue'; import { useRoute } from 'vue-router'; import AppFooter from './components/AppFooter.vue'; import AppHeader from './components/AppHeader.vue'; @@ -19,6 +24,11 @@ const route = useRoute(); const containerRef = ref<HTMLDivElement | null>(null); +// 鍒ゆ柇鏄惁鏄櫥褰曢〉闈� +const isLoginPage = computed(() => { + return route.path === '/login'; +}); + // 鐩戝惉璺敱鍙樺寲锛屾粴鍔ㄥ埌椤堕儴 watch( () => route.path, -- Gitblit v1.9.3