From 63465b857a7e7fa2ac18701f01d966bb2c5fa421 Mon Sep 17 00:00:00 2001
From: tanghaolin <1723298894@qq.com>
Date: 星期四, 17 四月 2025 17:35:53 +0800
Subject: [PATCH] 修改政策文件与计算工具界面

---
 src/App.vue |   40 ++++++++++++++++++++++++++++++++++------
 1 files changed, 34 insertions(+), 6 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index c30f556..bd99893 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,17 +1,45 @@
 <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 ">
-			<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></router-view>
+				</div>
+				<AppFooter></AppFooter>
 			</div>
-		</div>
+		</template>
+		<template v-else>
+			<router-view></router-view>
+		</template>
 	</div>
+	</el-config-provider>
 </template>
 
 <script setup lang="ts">
+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';
+});
+
+// 鐩戝惉璺敱鍙樺寲锛屾粴鍔ㄥ埌椤堕儴
+watch(
+	() => route.path,
+	() => {
+		if (containerRef.value) {
+			containerRef.value.scrollTop = 0;
+		}
+	}
+);
 </script>
 
 <style>

--
Gitblit v1.9.3