fix: [临时方案]修复因element-plus-x 1.3.98 中Conversations组件销毁问题出现的布局路由缺陷
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
.layout-blank{
|
||||
height: 100vh;
|
||||
overflow: auto;
|
||||
//margin: 20px ;
|
||||
}
|
||||
/* 无样式 */
|
||||
</style>
|
||||
|
||||
@@ -29,7 +29,6 @@ useWindowWidthObserver();
|
||||
|
||||
// 应用加载时检查是否需要显示公告弹窗
|
||||
onMounted(() => {
|
||||
console.log('announcementStore.shouldShowDialog--', announcementStore.shouldShowDialog);
|
||||
// 检查是否应该显示弹窗(只有"关闭一周"且未超过7天才不显示)
|
||||
// 数据获取已移至 SystemAnnouncementDialog 组件内部,每次打开弹窗时都会获取最新数据
|
||||
if (announcementStore.shouldShowDialog) {
|
||||
|
||||
@@ -42,8 +42,12 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<component :is="LayoutComponent[layout]" />
|
||||
<div v-show="layout === 'blankPage'">
|
||||
<LayoutBlankPage />
|
||||
<!-- <component :is="LayoutComponent[layout]" /> -->
|
||||
</div>
|
||||
<div v-show="layout !== 'blankPage'">
|
||||
<LayoutVertical />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user