fix: bug fix

This commit is contained in:
pipipi-pikachu 2021-08-11 21:16:33 +08:00
parent e14d37e617
commit 0eb816635d

View File

@ -37,7 +37,7 @@ export default defineComponent({
const handleElement = computed<PPTElement>(() => 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 },