From b233023bb338b1f1fd6006764bcdb031d198c25c Mon Sep 17 00:00:00 2001 From: sudoooooo Date: Mon, 12 Aug 2024 16:08:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=9E=E7=BB=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=A2=98=E7=9B=AE=E9=A2=91=E7=B9=81=E8=A7=A6=E5=8F=91=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=AF=BC=E8=87=B4=E9=A1=B5=E9=9D=A2=E5=8D=A1=E9=A1=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../questionModule/components/TypeList.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/web/src/management/pages/edit/modules/questionModule/components/TypeList.vue b/web/src/management/pages/edit/modules/questionModule/components/TypeList.vue index 4af8025a..e4d812be 100644 --- a/web/src/management/pages/edit/modules/questionModule/components/TypeList.vue +++ b/web/src/management/pages/edit/modules/questionModule/components/TypeList.vue @@ -19,11 +19,14 @@ class="qtopic-item" :id="'qtopic' + element.type" @click="onQuestionType({ type: element.type })" - @mouseenter="showPreview(element, 'qtopic' + element.type)" - @mouseleave="isShowPreviewImage = false" - @mousedown="isShowPreviewImage = false" > - +

{{ element.title }}

@@ -46,11 +49,11 @@ import { DND_GROUP } from '@/management/config/dnd' import questionMenuConfig, { questionTypeList } from '@/management/config/questionMenuConfig' import { storeToRefs } from 'pinia' import { useEditStore } from '@/management/stores/edit' -import { ref } from 'vue' +import { ref } from 'vue' const editStore = useEditStore() const { newQuestionIndex } = storeToRefs(editStore) -const { addQuestion, setCurrentEditOne,createNewQuestion } = editStore +const { addQuestion, setCurrentEditOne, createNewQuestion } = editStore const activeNames = ref([0, 1]) const previewImg = ref('') @@ -61,7 +64,6 @@ questionLoader.init({ typeList: questionTypeList.map((item) => item.type) }) - const onQuestionType = ({ type }) => { const newQuestion = createNewQuestion({ type }) addQuestion({ question: newQuestion, index: newQuestionIndex.value })