fix(数据集): 切换导航主菜单时,闪现其他的空状态图片
This commit is contained in:
parent
9e7651f1b7
commit
8296a38710
@ -63,6 +63,7 @@ const state = reactive({
|
||||
|
||||
const resourceGroupOpt = ref()
|
||||
const curCanvasType = ref('')
|
||||
const mounted = ref(false)
|
||||
|
||||
const isDataEaseBi = computed(() => appStore.getIsDataEaseBi)
|
||||
const createPanel = path => {
|
||||
@ -204,6 +205,7 @@ const getData = () => {
|
||||
})
|
||||
.finally(() => {
|
||||
dtLoading.value = false
|
||||
mounted.value = true
|
||||
nextTick(() => {
|
||||
if (!!nickName.value.length) {
|
||||
datasetListTree.value.filter(nickName.value)
|
||||
@ -573,7 +575,7 @@ const getMenuList = (val: boolean) => {
|
||||
</el-aside>
|
||||
|
||||
<div class="dataset-content" :class="isDataEaseBi && 'h100'">
|
||||
<template v-if="!state.datasetTree.length">
|
||||
<template v-if="!state.datasetTree.length && mounted">
|
||||
<empty-background description="暂无数据集" img-type="none">
|
||||
<el-button
|
||||
v-if="rootManage && !isDataEaseBi"
|
||||
@ -680,7 +682,7 @@ const getMenuList = (val: boolean) => {
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<template v-else-if="mounted">
|
||||
<empty-background :description="t('deDataset.on_the_left')" img-type="select" />
|
||||
</template>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user