Merge pull request #6065 from dataease/pr@dev@fix_panel-filter-init

fix(仪表板): 修复Tab组件中的过滤组件设置默认值不生效问题 #5795
This commit is contained in:
王嘉豪 2023-09-07 16:32:02 +08:00 committed by GitHub
commit bb377ecdbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,7 @@ export default {
computed: { computed: {
// 使filter // 使filter
initLoad() { initLoad() {
return !(this.isEdit && this.currentCanvasNewId.includes(this.element.id)) && this.isFirstLoad && this.canvasId === 'canvas-main' return !(this.isEdit && this.currentCanvasNewId.includes(this.element.id)) && this.isFirstLoad
}, },
scaleCoefficient() { scaleCoefficient() {
if (this.terminal === 'pc' && !this.mobileLayoutStatus) { if (this.terminal === 'pc' && !this.mobileLayoutStatus) {