small fixing, added throw errors in widgets
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<div v-if="loading" class="flex flex-col space-y-4">
|
||||
<div class="group block rounded-xl overflow-hidden animate-pulse">
|
||||
<div class="flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-5">
|
||||
<div class="shrink-0 relative rounded-xl overflow-hidden w-full sm:w-56 h-44">
|
||||
<div class="group block p-4 overflow-hidden animate-pulse">
|
||||
<div class="w-full">
|
||||
<div class="shrink-0 relative rounded-xl overflow-hidden w-full h-44">
|
||||
<div class="w-full h-full bg-gray-200"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="!loading & contacts">
|
||||
<div v-else-if="!loading && contacts">
|
||||
<section class="bg-[#F5F5F5] w-full py-10">
|
||||
<div class="max-w-screen-xl md:flex justify-around w-full mx-auto px-4 md:py-[50px] flex-wrap space-y-7 md:space-y-0">
|
||||
<ContactGroup v-for="contact in contacts.data.content"
|
||||
@@ -43,7 +43,8 @@ export default {
|
||||
this.loading = false; // Установить состояние загрузки в false
|
||||
})
|
||||
.catch(error => {
|
||||
console.error('Ошибка:', error);
|
||||
this.loading = false; // Установить состояние загрузки в false
|
||||
console.error('Ошибка:', error);
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else-if="!loading & resource">
|
||||
<div v-else-if="!loading && resource">
|
||||
|
||||
<!-- Card Blog -->
|
||||
<div class="px-0 py-10 sm:px-2 lg:py-14 mx-auto">
|
||||
|
||||
Reference in New Issue
Block a user