fix(仪表板): 过滤器导致编辑状态下全屏预览为空仪表板

This commit is contained in:
fit2cloud-chenyw 2024-04-26 21:45:46 +08:00
parent 000e230de0
commit cf44e51eef
2 changed files with 6 additions and 3 deletions

View File

@ -2,8 +2,8 @@ spring.profiles.active=@profiles.active@
spring.application.name=dataease
server.port=8081
spring.jackson.serialization.fail-on-empty-beans=true
spring.jackson.deserialization.fail-on-unknown-properties=true
# spring.jackson.serialization.fail-on-empty-beans=true
# spring.jackson.deserialization.fail-on-unknown-properties=true
# Hikari
spring.datasource.type=com.zaxxer.hikari.HikariDataSource
spring.datasource.hikari.minimum-idle=5

View File

@ -833,7 +833,10 @@ export default {
const componentData = deepCopy(this.componentData)
componentData.forEach(component => {
if (component.type === 'custom') {
component.style = deepCopy(this.findSourceComponent(component.id).style)
const sourceComponent = this.findSourceComponent(component.id)
if (sourceComponent?.style) {
component.style = deepCopy(this.findSourceComponent(component.id).style)
}
}
Object.keys(component.style).forEach(key => {
if (this.needToChangeHeight.includes(key)) {