@@ -63,6 +63,7 @@ export function useApi() {
}
},
})
+
const api = {
get: function<T>(url: string, params?: object): Promise<T> {
return instance(url, {
@@ -9,7 +9,7 @@
>
<img
v-if="news"
- src="http://www.kansk-tc.ru/UserFiles/2024/10/15/2024-10-08_550px..jpeg"
+ :src="news.preview.length > 0 ? news.preview : './notfound.png'"
class="w-full object-cover object-center absolute -z-10"
:style="`height: ${imageHeight}px`"
@@ -15,7 +15,7 @@
<WallPost
v-for="news in newsList"
:key="news.id"
- :image="news.preview"
+ :image="news.preview.length > 0 ? news.preview : `/nophoto.png`"
:title="news.title"
:description="news.description"
:date="news.date"