From 1177a778ee05ed9151a1031eab56cb830e14737f Mon Sep 17 00:00:00 2001 From: tim Date: Sun, 10 Aug 2025 11:50:21 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20fix=20=E6=B3=A8=E5=86=8C=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=92=8C=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/pages/login.vue | 3 ++- frontend_nuxt/pages/posts/[id]/index.vue | 29 +++++++++--------------- frontend_nuxt/pages/signup.vue | 3 ++- 3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/frontend_nuxt/pages/login.vue b/frontend_nuxt/pages/login.vue index 26d926a90..39ce538a5 100644 --- a/frontend_nuxt/pages/login.vue +++ b/frontend_nuxt/pages/login.vue @@ -82,7 +82,6 @@ export default { headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ username: this.username, password: this.password }) }) - this.isWaitingForLogin = false const data = await res.json() if (res.ok && data.token) { setToken(data.token) @@ -103,6 +102,8 @@ export default { } } catch (e) { toast.error('登录失败') + } finally { + this.isWaitingForLogin = false } }, diff --git a/frontend_nuxt/pages/posts/[id]/index.vue b/frontend_nuxt/pages/posts/[id]/index.vue index 8d045ea04..da071cd27 100644 --- a/frontend_nuxt/pages/posts/[id]/index.vue +++ b/frontend_nuxt/pages/posts/[id]/index.vue @@ -44,11 +44,8 @@
{{ author.username }} - {{ getMedalTitle(author.displayMedal) }} + {{ + getMedalTitle(author.displayMedal) }}
{{ postTime }}
@@ -59,11 +56,8 @@
{{ author.username }} - {{ getMedalTitle(author.displayMedal) }} + {{ + getMedalTitle(author.displayMedal) }}
{{ postTime }}
@@ -93,7 +87,7 @@
- +