From 1386b1411f1a59da70528c96bbfdca629a2deb75 Mon Sep 17 00:00:00 2001
From: tanghaolin <1723298894@qq.com>
Date: 星期二, 22 四月 2025 15:24:59 +0800
Subject: [PATCH] 添加新闻md文件

---
 src/App.vue |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 88e71f5..ed2ba96 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,24 +1,38 @@
 <template>
+	<el-config-provider :locale="zhCn">
 	<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 id="app-page" class="flex-auto !overflow-y-auto bg-[#ffffff]" ref="containerRef">
+				<div class="w-[100%] mx-auto">
+					<router-view :key="routerKey"></router-view>
+				</div>
+				<AppFooter></AppFooter>
 			</div>
-			<AppFooter></AppFooter>
-		</div>
+		</template>
+		<template v-else>
+			<router-view></router-view>
+		</template>
 	</div>
+	</el-config-provider>
 </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';
-
+import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
 const route = useRoute();
 const containerRef = ref<HTMLDivElement | null>(null);
 
+// 鍒ゆ柇鏄惁鏄櫥褰曢〉闈�
+const isLoginPage = computed(() => {
+	return route.path === '/login';
+});
+let routerKey = computed(() => {
+  return `${route.path}?v=${Math.random()}`;
+});
 // 鐩戝惉璺敱鍙樺寲锛屾粴鍔ㄥ埌椤堕儴
 watch(
 	() => route.path,

--
Gitblit v1.9.3