From b224f44f6836c4343fb8bb57900d6e2c37262fd1 Mon Sep 17 00:00:00 2001 From: ShawnPhang Date: Fri, 8 Nov 2024 23:26:18 +0800 Subject: [PATCH] fix: draw text with loading UI --- src/components/modules/widgets/wText/wText.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modules/widgets/wText/wText.vue b/src/components/modules/widgets/wText/wText.vue index 0170deb..6e811e2 100644 --- a/src/components/modules/widgets/wText/wText.vue +++ b/src/components/modules/widgets/wText/wText.vue @@ -55,7 +55,7 @@ import { reactive, toRefs, computed, onUpdated, watch, onMounted, ref } from 'vue' import { useRoute } from 'vue-router' -import { fontWithDraw } from '@/utils/widgets/loadFontRule' +// import { fontWithDraw } from '@/utils/widgets/loadFontRule' import getGradientOrImg from './getGradientOrImg' import { wTextSetting } from './wTextSetting' import { useForceStore, useHistoryStore, useWidgetStore } from '@/store' @@ -89,7 +89,7 @@ const widget = ref(null) const editWrap = ref(null) const dActiveElement = computed(() => widgetStore.dActiveElement) -const isDraw = computed(() => route.name === 'Draw' && fontWithDraw) +const isDraw = computed(() => route.name === 'Draw') onUpdated(() => { updateRecord()