Fix text blinking in About
This commit is contained in:
parent
76db2e388e
commit
b025e444c5
1 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
import BackBtn from "./BackBtn.vue";
|
||||
import axios from 'axios'
|
||||
|
||||
const codeStats = ref<string>('❌Не удалось загрузить❌')
|
||||
const codeStats = ref<string>('')
|
||||
const age = ref<string>('')
|
||||
|
||||
interface ILang {
|
||||
|
@ -12,7 +12,10 @@
|
|||
|
||||
async function getCodeStats() {
|
||||
const resp = await axios.get<ILang[]>(`${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;
|
||||
|
|
Loading…
Add table
Reference in a new issue