Migración vista Control panel #126

Merged
jsegarra merged 7 commits from wbuezas/hedera-web-mindshore:feature/admin-control-panel into beta 2025-03-31 07:51:47 +00:00
1 changed files with 4 additions and 5 deletions

View File

@ -1,16 +1,15 @@
<script setup>
import { ref, onMounted, inject } from 'vue';
const jApi = inject('jApi');
const api = inject('api');
const links = ref([]);
const getLinks = async () => {
try {
links.value = await jApi.query(
`SELECT image, name, description, link FROM link
ORDER BY name`
);
const filter = { order: 'name ASC' };
const { data } = await api.get('Links', { params: { filter } });
links.value = data;
} catch (error) {
console.error('Error getting links:', error);
}