feat: add creator

This commit is contained in:
xuyue committed 2026-06-16 11:05:56 -06:00
1 parent 33d5bfd8e9
commit 028ba0f2f9
4 files changed
+35 -8

No files matched your search

+1 -1
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>
+1
View File
@@ -6,6 +6,7 @@ export interface BookSummary {
name: string
updatedAt: string
lessonCount: number
createdBy: string
}
export interface BookRecord {