feat(HomeView): use salix for news
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
42a7503f37
commit
a64a2a91f6
|
@ -1,16 +1,15 @@
|
|||
<script setup>
|
||||
import { ref, onMounted, inject } from 'vue';
|
||||
const jApi = inject('jApi');
|
||||
const api = inject('api');
|
||||
const news = ref([]);
|
||||
const showPreview = ref(false);
|
||||
const selectedImageSrc = ref('');
|
||||
|
||||
const fetchData = async () => {
|
||||
news.value = await jApi.query(
|
||||
`SELECT title, text, image, id
|
||||
FROM news
|
||||
ORDER BY priority, created DESC`
|
||||
);
|
||||
const newsResponse = await api.get('News');
|
||||
|
||||
news.value = newsResponse.data;
|
||||
};
|
||||
|
||||
const showImagePreview = src => {
|
||||
|
|
Loading…
Reference in New Issue