fix: 修复详情页面 block 不显示刷新按钮 判断条件报错问题

This commit is contained in:
@changcode
2022-02-09 11:18:14 +08:00
parent 088f1980e1
commit bcd107aa81

View File

@@ -208,7 +208,8 @@ export default {
showRefreshButton () {
// 自己是group且父元素是block时不显示刷新按钮
// TODO 父元素是block且只有自己一个子元素时不显示刷新按钮
const isGroupAndParentIsBlock = this.chartInfo.parent.type === 95 && this.isGroup
console.log(this.chartInfo)
const isGroupAndParentIsBlock = this.$_.get(this.chartInfo.parent, 'type') === 95 && this.isGroup
return !isGroupAndParentIsBlock
}
},