mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 处理无数据删除会报错的bug
This commit is contained in:
@@ -95,7 +95,7 @@ const labelHandle = (e: HistoryItemType) => {
|
||||
return historyActionTypeName[HistoryTargetTypeEnum.CANVAS]
|
||||
} else if (e.actionType === HistoryActionTypeEnum.GROUP) {
|
||||
return `${historyActionTypeName[e.actionType]}`
|
||||
} else {
|
||||
} else if (e.historyData.length) {
|
||||
return `${historyActionTypeName[e.actionType]} - ${(e.historyData[0] as CreateComponentType).chartConfig.title}`
|
||||
}
|
||||
}
|
||||
@@ -108,7 +108,10 @@ const options = computed(() => {
|
||||
icon: iconHandle(e)
|
||||
}
|
||||
})
|
||||
return reverse(options)
|
||||
|
||||
return reverse(options.filter(item => {
|
||||
return item.label
|
||||
}))
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user