diff --git a/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue b/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue index f91d9361..19f5b77f 100644 --- a/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue +++ b/src/views/Editor/Toolbar/ElementStylePanel/TableStylePanel.vue @@ -260,7 +260,7 @@ export default defineComponent({ // 更新当前选中单元格的文本样式状态 const updateTextAttrState = () => { - if (!handleElement.value) return + if (!handleElement.value || handleElement.value.type !== 'table') return let rowIndex = 0 let colIndex = 0