From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列

---
 src/layouts/auth.vue |   44 +++++++++++++++++++++++++++++++-------------
 1 files changed, 31 insertions(+), 13 deletions(-)

diff --git a/src/layouts/auth.vue b/src/layouts/auth.vue
index 1cdccb9..a1fead3 100644
--- a/src/layouts/auth.vue
+++ b/src/layouts/auth.vue
@@ -1,27 +1,45 @@
 <script lang="ts" setup>
-import { computed } from 'vue';
+import { computed, onMounted } from 'vue';
 
-import { AuthPageLayout } from '@vben/layouts';
-import { preferences } from '@vben/preferences';
+import { preferences, usePreferences } 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锛夛紝杩涘叆鐧诲綍椤垫椂鎷夊彇涓�娆�
+  companyConfigStore.loadFromServer();
+});
+
 const appName = computed(() => preferences.copyright.companyName);
-const logo = computed(() => __APP_LOGO__ || preferences.logo.source);
-const logoDark = computed(() => preferences.logo.sourceDark);
+// 鐧诲綍椤� logo 浼樺厛鍙栨暟鎹簱閰嶇疆锛坧references.logo.source锛夛紝鏈厤缃椂鍥為��缂栬瘧鏈熼粯璁� __APP_LOGO__
+const logo = computed(() => {
+  const source = (isDark.value && preferences.logo.sourceDark) || preferences.logo.source || __APP_LOGO__;
+  // 鏈厤缃叕鍙告爣蹇楁椂涓嶅睍绀烘鏋舵紨绀� Logo銆�
+  return source?.includes('@vbenjs/static-source') ? '' : source;
+});
+const pageTitle = computed(() => companyConfigStore.loginTitle || '婊嬭ˉ鍝佽涓氭暟瀛楀寲绠$悊骞冲彴');
+const pageDescription = computed(() => companyConfigStore.loginDescription || '浼犳壙涓尰鑽簿鍗� 路 鏈嶅姟鍋ュ悍缇庡ソ鐢熸椿');
 </script>
 
 <template>
-  <AuthPageLayout
+  <AuthScene
     :app-name="appName"
     :logo="logo"
-    :logo-dark="logoDark"
-    :page-description="$t('authentication.pageDesc')"
-    :page-title="$t('authentication.pageTitle')"
+    :platform-description="pageDescription"
+    :platform-title="pageTitle"
   >
-    <!-- 鑷畾涔夊伐鍏锋爮 -->
-    <!-- <template #toolbar></template> -->
-  </AuthPageLayout>
+    <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>

--
Gitblit v1.9.3