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 @@
- +