新增:导航栏目设计拆分简单和高级展示方式

This commit is contained in:
2024-09-03 01:13:18 +08:00
parent bf43bdbab4
commit aa85c133e3
24 changed files with 1121 additions and 353 deletions
+6 -2
View File
@@ -50,10 +50,11 @@
<!-- logo 图标 -->
<template #logo>
<AImage
v-if="!company?.shortName"
v-if="logoPath"
:preview="false"
:style="{ width: '100px', height: '30px' }"
:src="logoPath"
@click="openUrl(`/system/profile`)"
alt="logo"
/>
</template>
@@ -117,6 +118,7 @@
setHomeComponents
} from '@/utils/page-tab-util';
import type { TabCtxMenuOption } from 'ele-admin-pro/es/ele-pro-layout/types';
import { openUrl } from '@/utils/common';
const { push } = useRouter();
const { t, locale } = useI18n();
@@ -126,7 +128,9 @@
// 租户信息
const { company } = storeToRefs(tenantStore);
// 网站名称
const projectName = company.value?.shortName;
const projectName = !company.value?.companyLogo
? company.value?.shortName
: '';
// 网站LOGO
const logoPath =
company.value?.companyLogo || 'https://www.gxwebsoft.com/ws-logo.svg';