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-drivers">
<div class="header">
<button class="back-link" @click="$router.push('/admin')"> Volver al Panel</button>
<button class="back-link" @click="router.push('/admin')"> Volver al Panel</button>
<h1>Gestión de Conductores y Taxis</h1>
<div class="header-actions">
<button class="btn-primary" @click="openRegisterModal">
@ -336,8 +336,10 @@
import { ref, onMounted, reactive, computed } from 'vue'
import { usersService } from '@/services/usersService'
import { authService } from '@/services/authService'
import { useRouter } from 'vue-router'
import { supabase } from '@/supabase'
const router = useRouter()
const activeTab = ref<'drivers' | 'taxis'>('drivers')
const isLoading = ref(false)
const activeDrivers = ref<any[]>([])