refactor(仪表板): 优化仪表板为空的提示显示

This commit is contained in:
wangjiahao 2022-09-20 11:26:49 +08:00
parent f4e1a28b40
commit 4602c25fef

View File

@ -9,7 +9,7 @@
<span>{{ $t('panel.panel_off') }}</span>
</div>
</el-row>
<el-row v-else-if="componentDataShow.length===0" class="custom-position">
<el-row v-else-if="componentDataShow && componentDataShow.length===0" class="custom-position">
{{ $t('panel.panelNull') }}
</el-row>
<div
@ -163,7 +163,7 @@ export default {
scaleWidth: '100',
scaleHeight: '100',
timer: null,
componentDataShow: [],
componentDataShow: null,
mainWidth: '100%',
mainHeight: '100%',
searchCount: 0,