fix: back buttons missing router instance mapping and fix array structure in supabase route stops fetch

This commit is contained in:
2026-02-25 23:38:05 -05:00
parent 528e3989ef
commit 6303aa4b35
5 changed files with 56 additions and 12 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="admin-bus-stops">
<div class="header">
<button class="back-link" @click="$router.push('/admin')">&larr; Volver al Panel</button>
<button class="back-link" @click="router.push('/admin')">&larr; Volver al Panel</button>
<h1>Gestionar Paradas</h1>
<button class="add-button" @click="openCreate">
<span class="material-icons">add</span> Nueva Parada
@ -48,10 +48,12 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { busStopsService } from '@/services/busStopsService'
import type { BusStop } from '@/types'
import BusStopEditor from '@/components/BusStopEditor.vue'
const router = useRouter()
const stops = ref<BusStop[]>([])
const isLoading = ref(true)
const error = ref<string | null>(null)