From 0eb816635dd2ab9944c8ef287af6ef6aed318b71 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Wed, 11 Aug 2021 21:16:33 +0800 Subject: [PATCH] fix: bug fix --- src/views/Editor/Toolbar/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 },