优化专题内容

dianlixunjian
刘妍 2024-07-05 10:48:21 +08:00
parent 0b5562a51f
commit f2631e65c5
3 changed files with 10 additions and 12 deletions

View File

@ -58,9 +58,11 @@
import { PageEnum } from '@/enums/pageEnum';
import { router } from '@/router';
import { useMessage } from '@/hooks/web/useMessage';
import { useMultipleTabStore } from '@/store/modules/multipleTab';
type MenuEvent = 'logout' | 'doc' | 'lock' | 'api';
const { createConfirm } = useMessage();
const tabStore = useMultipleTabStore();
const MenuItem = createAsyncComponent(() => import('./DropMenuItem.vue'));
const LockAction = createAsyncComponent(() => import('../lock/LockModal.vue'));
@ -101,6 +103,7 @@
title: () => h('span', t('sys.navigation.logoutTip')),
content: () => h('span', t('sys.navigation.logoutMessage')),
onOk: async () => {
tabStore.resetState();
await router.replace(PageEnum.SUBJECT_HOME);
},
});

View File

@ -231,7 +231,7 @@
</div>
<Amend @register="registerModal" @success="handleSuccess" />
<a-modal
style="top:0px;left:0px;width:100vw;height:100vh;"
style="top: 0px; left: 0px; width: 100vw; height: 100vh"
v-model:open="showInfoOpen"
title="详情"
:footer="null"
@ -512,10 +512,8 @@
}
}
.pagination-div {
display: flex;
align-items: center;
background: @component-background;
justify-content: center;
padding: 0 10px 10px;
}
.no-data {
padding: 20px 0;
@ -525,13 +523,13 @@
padding: 10px;
}
::v-deep .ant-modal-content{
width:100vw;
height:100vh;
::v-deep .ant-modal-content {
width: 100vw;
height: 100vh;
border-radius: 0px;
}
::v-deep .ant-modal .ant-modal-content{
border-radius: 0px!important;
::v-deep .ant-modal .ant-modal-content {
border-radius: 0px !important;
}
</style>

View File

@ -118,9 +118,6 @@
message.error('跳转链接为空!');
return;
}
if (item.title == '后台管理') {
item.id = '';
}
if (item.isExternal) {
window.location.href = item.linkOrApi;
} else {