From 606999f6b768529295756d288950df982421656a Mon Sep 17 00:00:00 2001 From: Oracle Date: Sun, 31 Dec 2023 06:21:05 +0000 Subject: [PATCH] =?UTF-8?q?:bug:=20fix:=20429=20=EC=98=88=EC=99=B8?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Navbar.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/Navbar.vue b/components/Navbar.vue index 9fe2dbb..b265a50 100644 --- a/components/Navbar.vue +++ b/components/Navbar.vue @@ -207,6 +207,12 @@ export default { }) ).data } catch (e) { + if (e.response?.status === 429) { + setTimeout(() => { + window.location.reload() + }, e.response?.data.error.retry_after * 1000) + } + catchNetworkError(e) } }, @@ -216,7 +222,7 @@ export default { data() { return { showServerMenu: false, - server: [{ name: this.$t('sidebar.loading'), icon: 'test.png' }], + server: [{ id: this.$route.query.id, name: this.$t('sidebar.loading'), icon: 'test.png' }], showNav: true, isMobile: false, }