liu
2 天以前 950e1332f89e3d18a8f4b415bd4fe274dce1e954
src/layouts/auth.vue
@@ -20,13 +20,9 @@
// 登录页 logo 优先取数据库配置(preferences.logo.source),未配置时回退编译期默认 __APP_LOGO__
const logo = computed(() => preferences.logo.source || __APP_LOGO__);
const logoDark = computed(() => preferences.logo.sourceDark);
// 登录页标题/描述优先取后端配置,未配置时回退到 i18n 默认
const pageTitle = computed(
  () => companyConfigStore.loginTitle || $t('authentication.pageTitle'),
);
const pageDescription = computed(
  () => companyConfigStore.loginDescription || $t('authentication.pageDesc'),
);
// 登录页标题/描述使用 i18n 固定文案,不随公司配置变化
const pageTitle = computed(() => $t('authentication.pageTitle'));
const pageDescription = computed(() => $t('authentication.pageDesc'));
</script>
<template>