Merge pull request #3116 from dataease/pr@dev@refactor_panel-empty-tips

refactor(仪表板): 优化仪表板为空的提示显示
This commit is contained in:
Junjun 2022-09-20 11:29:50 +08:00 committed by GitHub
commit daed174fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,