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