From c4464e1202da1ebf0a370edcdc0b3154cbc74e55 Mon Sep 17 00:00:00 2001 From: UnknownMp Date: Mon, 9 Jun 2025 17:20:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E4=BD=9C=E5=93=81=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA=E5=92=8C?= =?UTF-8?q?=E6=9B=B4=E5=8F=8B=E5=A5=BD=E7=9A=84=E9=94=99=E8=AF=AF=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [BugFix] 增加了错误界面返回链接缺失的换行 修复了不显示作者笔名的陈年老 Bug (我觉得我是不是 SB, 把 pseud 写成 pesud) --- src/stores/workRead.js | 30 ++++++++++++-------------- src/views/About.md | 3 ++- src/views/Work.vue | 48 ++++++++++++++++++++++++++++++++++++------ 3 files changed, 57 insertions(+), 24 deletions(-) diff --git a/src/stores/workRead.js b/src/stores/workRead.js index 05fc039..2878d03 100644 --- a/src/stores/workRead.js +++ b/src/stores/workRead.js @@ -15,6 +15,8 @@ export const useWorkReadState = defineStore('workRead', () => { const text = ref(null) const state = ref('') const publishedTime = ref(null) + const completedTime = ref(null) + const updatedTime = ref(null) const wordCount = ref(0) const kudoCount = ref(0) const hitCount = ref(0) @@ -32,6 +34,8 @@ export const useWorkReadState = defineStore('workRead', () => { pseud.value = data.pseud text.value = data.text publishedTime.value = data.stats.publishedTime + completedTime.value = data.stats.completedTime + updatedTime.value = data.stats.updatedTime wordCount.value = data.stats.wordCount kudoCount.value = data.stats.kudoCount hitCount.value = data.stats.hitCount @@ -66,26 +70,20 @@ export const useWorkReadState = defineStore('workRead', () => { state.value = import.meta.env.SSR ? 'ssrnotfound' : 'notfound' } else if (result.status == 401) { state.value = 'unauth' + } else if (result.status == 500) { + state.value = 'error' } } return { id, cid, - title, - summary, - pseud, - text, - state, + title, summary, + pseud, text, state, publishedTime, - wordCount, - kudoCount, - hitCount, - category, - fandom, - lang, - chapters, - chapterIndex, - chapterStat, - setData, - loadWork + completedTime, + updatedTime, + wordCount, kudoCount, hitCount, + category, fandom, lang, + chapters, chapterIndex, chapterStat, + setData, loadWork } }) diff --git a/src/views/About.md b/src/views/About.md index c3ffcfd..0c6f5ef 100644 --- a/src/views/About.md +++ b/src/views/About.md @@ -21,9 +21,10 @@ onUnmounted(() => console.log('Unmounted'))*/ --- 一个 AO3 镜像站, 优化了 UI/UX -作者 (1) +作者 {#contact} --- - [UnknownMp](https://www.unknownmp.top) + 邮件: unknownmp@unknownmp.top --- diff --git a/src/views/Work.vue b/src/views/Work.vue index 5c95979..e82d062 100644 --- a/src/views/Work.vue +++ b/src/views/Work.vue @@ -122,7 +122,16 @@ async function switchWorkWithIndex(target) { ID: {{workReadState.id}}
+
+ 返回 +