网站:顶级域名改为自定义域名

This commit is contained in:
2024-09-06 13:12:18 +08:00
parent 4b2c4bd9e6
commit 9438021a08
7 changed files with 73 additions and 71 deletions
+11 -12
View File
@@ -49,14 +49,16 @@
<router-layout />
<!-- logo 图标 -->
<template #logo>
<AImage
v-if="logoPath"
:preview="false"
:style="{ width: '100px', height: '30px' }"
:src="logoPath"
@click="openUrl(`/system/profile`)"
alt="logo"
/>
<div class="sys-logo mr-2 flex items-center flex-col">
<AAvatar
shape="square"
:preview="false"
:size="28"
:src="logoPath"
@click="push(`/system/profile`)"
alt="logo"
/>
</div>
</template>
<!-- 顶栏右侧区域 -->
<template #right>
@@ -118,7 +120,6 @@
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();
@@ -128,9 +129,7 @@
// 租户信息
const { company } = storeToRefs(tenantStore);
// 网站名称
const projectName = !company.value?.companyLogo
? company.value?.shortName
: '';
const projectName = company.value?.shortName || 'WEBSOFT';
// 网站LOGO
const logoPath =
company.value?.companyLogo || 'https://www.gxwebsoft.com/ws-logo.svg';