From 008e168d50c53c5436b8f7398bc6b446f7ac5ee0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 20 十月 2026 11:34:33 +0800
Subject: [PATCH] fix(auth): 登录页恢复标品布局,主题色还原默认蓝色

---
 src/layouts/auth.vue |   36 +++++++++++++++++++-----------------
 1 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/src/layouts/auth.vue b/src/layouts/auth.vue
index a1fead3..9bf8bb3 100644
--- a/src/layouts/auth.vue
+++ b/src/layouts/auth.vue
@@ -1,16 +1,15 @@
 <script lang="ts" setup>
 import { computed, onMounted } from 'vue';
 
-import { preferences, usePreferences } from '@vben/preferences';
+import { AuthPageLayout } from '@vben/layouts';
+import { preferences } from '@vben/preferences';
 
+import { $t } from '#/locales';
 import { useCompanyConfigStore } from '#/store/company-config';
-import AuthenticationToolbar from '../packages/effects/layouts/src/authentication/toolbar.vue';
-import AuthScene from './auth-scene.vue';
 
 declare const __APP_LOGO__: string;
 
 const companyConfigStore = useCompanyConfigStore();
-const { isDark } = usePreferences();
 
 onMounted(() => {
   // 鐧诲綍椤靛睍绀� loginTitle锛氬惎鍔ㄥ姞杞借蛋鐨勬槸绾嚱鏁帮紙涓嶅~ store锛夛紝杩涘叆鐧诲綍椤垫椂鎷夊彇涓�娆�
@@ -20,26 +19,29 @@
 const appName = computed(() => preferences.copyright.companyName);
 // 鐧诲綍椤� logo 浼樺厛鍙栨暟鎹簱閰嶇疆锛坧references.logo.source锛夛紝鏈厤缃椂鍥為��缂栬瘧鏈熼粯璁� __APP_LOGO__
 const logo = computed(() => {
-  const source = (isDark.value && preferences.logo.sourceDark) || preferences.logo.source || __APP_LOGO__;
+  const source = preferences.logo.source || __APP_LOGO__;
   // 鏈厤缃叕鍙告爣蹇楁椂涓嶅睍绀烘鏋舵紨绀� Logo銆�
   return source?.includes('@vbenjs/static-source') ? '' : source;
 });
-const pageTitle = computed(() => companyConfigStore.loginTitle || '婊嬭ˉ鍝佽涓氭暟瀛楀寲绠$悊骞冲彴');
-const pageDescription = computed(() => companyConfigStore.loginDescription || '浼犳壙涓尰鑽簿鍗� 路 鏈嶅姟鍋ュ悍缇庡ソ鐢熸椿');
+const logoDark = computed(() => preferences.logo.sourceDark);
+// 鏍囬/鎻忚堪浼樺厛鍙栧叕鍙镐俊鎭厤缃紝鏈厤缃椂鍥為��鏍囧搧鏂囨
+const pageTitle = computed(
+  () => companyConfigStore.loginTitle || $t('authentication.pageTitle'),
+);
+const pageDescription = computed(
+  () => companyConfigStore.loginDescription || $t('authentication.pageDesc'),
+);
 </script>
 
 <template>
-  <AuthScene
+  <AuthPageLayout
     :app-name="appName"
     :logo="logo"
-    :platform-description="pageDescription"
-    :platform-title="pageTitle"
+    :logo-dark="logoDark"
+    :page-description="pageDescription"
+    :page-title="pageTitle"
   >
-    <template #toolbar><AuthenticationToolbar :toolbar-list="['language', 'theme']" /></template>
-    <RouterView v-slot="{ Component, route }">
-      <KeepAlive :include="['Login']">
-        <component :is="Component" :key="route.fullPath" />
-      </KeepAlive>
-    </RouterView>
-  </AuthScene>
+    <!-- 鑷畾涔夊伐鍏锋爮 -->
+    <!-- <template #toolbar></template> -->
+  </AuthPageLayout>
 </template>

--
Gitblit v1.9.3