Fix in the news imgs
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<template>
|
||||
<div class="bg-white">
|
||||
<div class="max-w-screen-xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
|
||||
<p
|
||||
<div
|
||||
v-html="news.content"
|
||||
class="text-center text-base leading-6 font-semibold uppercase text-gray-600 tracking-wider"
|
||||
>
|
||||
{{ news.excerpt }}
|
||||
</p>
|
||||
></div>
|
||||
<div class="mt-6 grid grid-cols-2 gap-0.5 md:grid-cols-3 lg:mt-8">
|
||||
<g-link
|
||||
v-for="partner in news.partners"
|
||||
@@ -14,15 +13,7 @@
|
||||
target="_blank"
|
||||
class="col-span-1 flex justify-center py-8 px-8 m-1 bg-gray-100"
|
||||
>
|
||||
<!-- <img
|
||||
class="max-h-12"
|
||||
:src="require(`!!assets-loader!@images/${partner.logo}`)"
|
||||
/> -->
|
||||
|
||||
<img
|
||||
class="max-h-12"
|
||||
:src="partner.logo"
|
||||
/>
|
||||
<img class="max-h-12" :src="img(partner.logo)" />
|
||||
</g-link>
|
||||
</div>
|
||||
</div>
|
||||
@@ -32,5 +23,12 @@
|
||||
<script>
|
||||
export default {
|
||||
props: ["news"],
|
||||
methods: {
|
||||
img(image) {
|
||||
if (!image) return "";
|
||||
if (image.src) return image.src;
|
||||
return image;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user