From 7ae51438f4608595ca96f33e0e846fc3743731ee Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Mon, 3 Aug 2026 15:49:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Library/LibraryFileDialog.vue | 43 ------- src/components/Library/LibraryFileList.vue | 8 +- src/components/question/QuestionList.vue | 2 +- src/layout/AppLogo.vue | 16 +++ src/layout/AppMenu.vue | 35 ++++++ src/layout/index.vue | 114 +++++++++---------- src/stores/app.ts | 11 ++ src/views/Exam.vue | 2 +- src/views/Library.vue | 7 +- 9 files changed, 132 insertions(+), 106 deletions(-) create mode 100644 src/layout/AppLogo.vue create mode 100644 src/layout/AppMenu.vue create mode 100644 src/stores/app.ts diff --git a/src/components/Library/LibraryFileDialog.vue b/src/components/Library/LibraryFileDialog.vue index c3e1c7d..c09f266 100644 --- a/src/components/Library/LibraryFileDialog.vue +++ b/src/components/Library/LibraryFileDialog.vue @@ -220,49 +220,6 @@ const submitForm = async () => { .md-editor { height: auto; } - - .generate-question { - display: flex; - flex-direction: column; - gap: 10px; - - .generate-action { - display: flex; - align-items: center; - gap: 10px; - } - } - - .question-list { - display: flex; - flex-direction: column; - gap: 10px; - - .question-card { - .el-card__body { - display: flex; - flex-direction: column; - gap: 10px; - } - - .question-title { - font-weight: 600; - } - - .question-options { - padding-left: 16px; - } - - .question-answer { - color: #67c23a; - font-size: 13px; - } - - .question-action { - text-align: right; - } - } - } } } diff --git a/src/components/Library/LibraryFileList.vue b/src/components/Library/LibraryFileList.vue index 5b17fd0..8ddf28d 100644 --- a/src/components/Library/LibraryFileList.vue +++ b/src/components/Library/LibraryFileList.vue @@ -15,9 +15,11 @@
- 编辑 + 编辑 训练 - 删除 + 删除
@@ -30,6 +32,7 @@ import { Delete, Edit, Picture, Document, Aim } from '@element-plus/icons-vue' import { useLibraryStore } from '@/stores/library.ts' import { usePracticeStore } from '@/stores/practice.ts' import { useQuestionStore } from '@/stores/question.ts' +import { useAppStore } from '@/stores/app.ts' import type { ILibraryFile } from '@/types/library.ts' import LibraryFilter from '@/components/Library/LibraryFilter.vue' import { computed } from 'vue' @@ -40,6 +43,7 @@ import { ElLoading, ElMessage } from 'element-plus' const libraryStore = useLibraryStore() const practiceStore = usePracticeStore() const questionStore = useQuestionStore() +const appStore = useAppStore() const filterLibraryFileList = computed(() => { const subject = libraryStore.selectedSubject diff --git a/src/components/question/QuestionList.vue b/src/components/question/QuestionList.vue index f9a3a46..947e048 100644 --- a/src/components/question/QuestionList.vue +++ b/src/components/question/QuestionList.vue @@ -119,7 +119,7 @@ const addMistakeList = async () => { gap: 16px; .question-list { - padding: 10px; + padding: 0 10px; background: #fff; border-radius: 12px; diff --git a/src/layout/AppLogo.vue b/src/layout/AppLogo.vue new file mode 100644 index 0000000..16adc2d --- /dev/null +++ b/src/layout/AppLogo.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/layout/AppMenu.vue b/src/layout/AppMenu.vue new file mode 100644 index 0000000..c0ce01f --- /dev/null +++ b/src/layout/AppMenu.vue @@ -0,0 +1,35 @@ + + + diff --git a/src/layout/index.vue b/src/layout/index.vue index a190009..dd1a172 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,50 +1,29 @@