tanghaolin
2025-03-07 73685acf8d8ef5c76e4b13c5a9d7026bb8bec7b1
src/App.vue
@@ -1,8 +1,9 @@
<template>
   <el-config-provider :locale="zhCn">
   <div class="h-full bg-gray-50 flex flex-col">
      <template v-if="!isLoginPage">
         <AppHeader class="flex-0" />
         <div class="flex-auto !overflow-y-auto bg-[#f4f4f4]" ref="containerRef">
         <div id="app-page" class="flex-auto !overflow-y-auto bg-[#f4f4f4]" ref="containerRef">
            <div class="w-[63%] mx-auto">
               <router-view></router-view>
            </div>
@@ -13,6 +14,7 @@
         <router-view></router-view>
      </template>
   </div>
   </el-config-provider>
</template>
<script setup lang="ts">
@@ -20,7 +22,7 @@
import { useRoute } from 'vue-router';
import AppFooter from './components/AppFooter.vue';
import AppHeader from './components/AppHeader.vue';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const route = useRoute();
const containerRef = ref<HTMLDivElement | null>(null);