fix(bug):修复子任务卡片点击逻辑

This commit is contained in:
2026-01-08 07:55:53 +08:00
parent f361a7027b
commit 80c4a0b67b

View File

@@ -171,7 +171,7 @@ onUnmounted(() => {
v-for="book in bookSubTasks" v-for="book in bookSubTasks"
:key="book.id" :key="book.id"
class="batch-card group bg-white p-5 flex flex-col border border-slate-100 shadow-sm hover:shadow-md hover:border-slate-200 transition-all duration-300 rounded-xl relative overflow-hidden" class="batch-card group bg-white p-5 flex flex-col border border-slate-100 shadow-sm hover:shadow-md hover:border-slate-200 transition-all duration-300 rounded-xl relative overflow-hidden"
@click="book.status === 'COMPLETED' ? handlePreview(book.id) : null"
> >
<div <div
class="absolute top-0 right-0 w-16 h-16 opacity-[0.03] -mr-4 -mt-4 transition-transform group-hover:scale-110" class="absolute top-0 right-0 w-16 h-16 opacity-[0.03] -mr-4 -mt-4 transition-transform group-hover:scale-110"
@@ -196,7 +196,7 @@ onUnmounted(() => {
type="secondary" type="secondary"
class="rounded-lg text-[#7816ff] bg-purple-50 border-none hover:bg-purple-100" class="rounded-lg text-[#7816ff] bg-purple-50 border-none hover:bg-purple-100"
:disabled="book.status !== 'COMPLETED'" :disabled="book.status !== 'COMPLETED'"
@click.stop="handlePreview(book.id)" @click="book.status === 'COMPLETED' ? handlePreview(book.id) : null"
> >
预览成果 预览成果
</a-button> </a-button>