feat: add creator

This commit is contained in:
2026-06-16 11:05:56 -06:00
parent 33d5bfd8e9
commit 028ba0f2f9
4 changed files with 35 additions and 8 deletions

View File

@@ -156,7 +156,7 @@ async function removeBook(book: BookSummary): Promise<void> {
</template>
<template v-else>
<span class="book-list-name">{{ book.name }}</span>
<span class="book-list-meta">更新于 {{ formatCstUpdatedAt(book.updatedAt) }} · {{ book.lessonCount }} </span>
<span class="book-list-meta">更新于 {{ formatCstUpdatedAt(book.updatedAt) }} · {{ book.lessonCount }} <template v-if="book.createdBy"> · 创建者{{ book.createdBy }}</template></span>
<button class="ui-button" type="button" :data-testid="`open-${book.id}`" @click="emit('open', book.id)">
打开
</button>