czh-20260618-增大底部footer和横向滚动条;增加联系我们功能

This commit is contained in:
zhihao
2026-06-18 09:10:05 +08:00
parent 09be89c343
commit 01f9478519
7 changed files with 30 additions and 3 deletions
@@ -10,6 +10,7 @@
<MenuDivider v-if="getShowDoc" />
<!-- <MenuItem itemKey="account" :text="t('layout.header.dropdownItemSwitchAccount')" icon="ant-design:setting-outlined" /> -->
<!-- <MenuItem itemKey="password" :text="t('layout.header.dropdownItemSwitchPassword')" icon="ant-design:edit-outlined" /> -->
<MenuItem itemKey="contact" text="联系我们" icon="ant-design:phone-outlined" />
<MenuItem itemKey="depart" :text="t('layout.header.dropdownItemSwitchDepart')" icon="ant-design:cluster-outlined" />
<MenuItem itemKey="cache" :text="t('layout.header.dropdownItemRefreshCache')" icon="ion:sync-outline" />
<!-- <MenuItem
@@ -32,7 +33,7 @@
import { defineComponent, computed, ref } from 'vue';
import { SITE_URL } from '/@/settings/siteSetting';
import { SITE_URL, CONTACT_URL } from '/@/settings/siteSetting';
import { useUserStore } from '/@/store/modules/user';
import { useHeaderSetting } from '/@/hooks/setting/useHeaderSetting';
@@ -54,7 +55,7 @@ import deptLogo from '/@/assets/images/department-logo.png';
// import { getFileAccessHttpUrl } from '/@/utils/common/compUtils';
import { getRefPromise } from '/@/utils/index';
type MenuEvent = 'logout' | 'doc' | 'lock' | 'cache' | 'depart';
type MenuEvent = 'logout' | 'doc' | 'lock' | 'cache' | 'depart' | 'contact';
const { createMessage } = useMessage();
export default defineComponent({
name: 'UserDropdown',
@@ -115,6 +116,11 @@ import deptLogo from '/@/assets/images/department-logo.png';
openWindow(SITE_URL);
}
// open contact
function openContact() {
openWindow(CONTACT_URL);
}
// 清除缓存
async function clearCache() {
const result = await refreshCache();
@@ -159,6 +165,9 @@ import deptLogo from '/@/assets/images/department-logo.png';
case 'cache':
clearCache();
break;
case 'contact':
openContact();
break;
case 'depart':
updateCurrentDepart();
break;