From b025e444c53ee25ed21bb55ad74bd1d45a4a049d Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 3 May 2023 22:12:25 +0300 Subject: [PATCH] Fix text blinking in About --- frontend/src/components/About.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/About.vue b/frontend/src/components/About.vue index a7c10a2..e1eff09 100644 --- a/frontend/src/components/About.vue +++ b/frontend/src/components/About.vue @@ -3,7 +3,7 @@ import BackBtn from "./BackBtn.vue"; import axios from 'axios' - const codeStats = ref('❌Не удалось загрузить❌') + const codeStats = ref('') const age = ref('') interface ILang { @@ -12,7 +12,10 @@ async function getCodeStats() { const resp = await axios.get(`${window.location.origin}/api/v1/code_stats`) - if (resp.status !== 200) return; + if (resp.status !== 200) { + codeStats.value = '❌Не удалось загрузить❌' + return; + } if (!Object.keys(resp.data).length) { codeStats.value = 'ничего не писал(' return;