diff --git a/src/views/Editor/Toolbar/index.vue b/src/views/Editor/Toolbar/index.vue index 72cc3f1c..7d894d9a 100644 --- a/src/views/Editor/Toolbar/index.vue +++ b/src/views/Editor/Toolbar/index.vue @@ -37,7 +37,7 @@ export default defineComponent({ const handleElement = computed(() => store.getters.handleElement) const elementTabs = computed(() => { - if (handleElement.value.type === 'text') { + if (handleElement.value?.type === 'text') { return [ { label: '样式', value: ToolbarStates.EL_STYLE }, { label: '符号', value: ToolbarStates.SYMBOL },