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 | 46 ++++++++++++++++++++++++++++++++--------------
1 files changed, 32 insertions(+), 14 deletions(-)
diff --git a/src/layouts/auth.vue b/src/layouts/auth.vue
index ad41d1f..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 appName = computed(() => preferences.app.name);
-const logo = computed(() => __APP_LOGO__ || preferences.logo.source);
-const logoDark = computed(() => preferences.logo.sourceDark);
+const companyConfigStore = useCompanyConfigStore();
+const { isDark } = usePreferences();
+
+onMounted(() => {
+ // 鐧诲綍椤靛睍绀� loginTitle锛氬惎鍔ㄥ姞杞借蛋鐨勬槸绾嚱鏁帮紙涓嶅~ store锛夛紝杩涘叆鐧诲綍椤垫椂鎷夊彇涓�娆�
+ companyConfigStore.loadFromServer();
+});
+
+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__;
+ // 鏈厤缃叕鍙告爣蹇楁椂涓嶅睍绀烘鏋舵紨绀� 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