-
{{ props.article.title }}
{{ props.article.titleTranslate }}
@@ -447,7 +446,7 @@ let showQuestions = $ref(false)
下一章
+ @click="emit('next')">下一篇
@@ -550,7 +549,7 @@ let showQuestions = $ref(false)
}
&.tall {
- line-height: 2.2;
+ line-height: 2.6;
}
.section {
@@ -590,7 +589,7 @@ let showQuestions = $ref(false)
height: 100%;
width: 100%;
font-size: 1.2rem;
- line-height: 3.0;
+ line-height: 3.5;
letter-spacing: .2rem;
font-family: var(--zh-article-family);
font-weight: bold;
diff --git a/src/stores/base.ts b/src/stores/base.ts
index d823f5ba..1bccc5f3 100644
--- a/src/stores/base.ts
+++ b/src/stores/base.ts
@@ -109,8 +109,9 @@ export const useBaseStore = defineStore('base', {
return this.article.bookList[this.article.studyIndex] ?? {}
},
currentBookProgress(): number {
- if (this.currentBook.name) return Number(Number(this.currentBook.lastLearnIndex / this.currentBook.length).toFixed(2))
- return 0
+ if (!this.sbook.length) return 0
+ if (this.sbook.complete) return 100
+ return _getStudyProgress(this.sbook.lastLearnIndex, this.sbook.length)
},
},
actions: {