style: 调整主题,修改子系统切换的样式,略微调整系统导航栏的高度

This commit is contained in:
gaoyunqi
2024-02-24 12:52:09 +08:00
parent 96ed35405b
commit 72936bc553
7 changed files with 13 additions and 31 deletions

View File

@ -1,4 +1,4 @@
import { watch, unref } from 'vue';
import { watch, unref, ref } from 'vue';
import { useI18n } from '/@/hooks/web/useI18n';
import { useTitle as usePageTitle } from '@vueuse/core';
import { useGlobSetting } from '/@/hooks/setting';
@ -11,7 +11,7 @@ import { REDIRECT_NAME } from '/@/router/constant';
* Listening to page changes and dynamically changing site titles
*/
export function useTitle() {
const { title } = useGlobSetting();
const title = import.meta.env.VITE_SYSTEM_NAME;
const { t } = useI18n();
const { currentRoute } = useRouter();
const localeStore = useLocaleStore();
@ -29,8 +29,8 @@ export function useTitle() {
const tTitle = t(route?.meta?.title as string);
pageTitle.value = tTitle
? ` ${tTitle} - ${appStore.getLogoConfig.shortName || title} `
: `${appStore.getLogoConfig.shortName || title}`;
? ` ${tTitle} - ${title} `
: `${title}`;
},
{ immediate: true },
);