From a2534459d0cc186081306dd6e76014cae1db3ebf Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 16 Jun 2026 07:08:13 -0600 Subject: [PATCH] fix --- src/components/BatchGenerateDialog.vue | 5 +++-- src/components/WorkspaceView.vue | 1 + src/style.css | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/BatchGenerateDialog.vue b/src/components/BatchGenerateDialog.vue index 04710ad..31f2fc1 100644 --- a/src/components/BatchGenerateDialog.vue +++ b/src/components/BatchGenerateDialog.vue @@ -10,6 +10,7 @@ const props = defineProps<{ total: number currentTopic: string error: string | null + defaultTheme?: string }>() const emit = defineEmits<{ @@ -19,7 +20,7 @@ const emit = defineEmits<{ }>() const phase = ref('theme') -const theme = ref('') +const theme = ref(props.defaultTheme ?? '') const outlineText = ref('') const outlineError = ref(null) @@ -61,7 +62,7 @@ function handleStart(): void { function handleClose(): void { phase.value = 'theme' - theme.value = '' + theme.value = props.defaultTheme ?? '' outlineText.value = '' outlineError.value = null emit('close') diff --git a/src/components/WorkspaceView.vue b/src/components/WorkspaceView.vue index ec7d1cd..782cb5e 100644 --- a/src/components/WorkspaceView.vue +++ b/src/components/WorkspaceView.vue @@ -248,6 +248,7 @@ function closeFixDialog(): void { :total="batchTotal" :current-topic="batchCurrentTopic" :error="batchError" + :default-theme="bookName" @start="handleBatchStart" @cancel="handleBatchCancel" @close="closeBatchDialog" diff --git a/src/style.css b/src/style.css index f82cf22..ef8763e 100644 --- a/src/style.css +++ b/src/style.css @@ -733,6 +733,7 @@ table { border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; + width: 100%; } .book-list {