arreglados url de las api en la UI
Some checks failed
build-and-deploy / filter (push) Successful in 2s
Sync to GitHub / sync (push) Failing after 1s
build-and-deploy / build (push) Successful in 9s
build-and-deploy / deploy (push) Successful in 15s

This commit is contained in:
2025-05-30 02:48:28 -06:00
parent 1198bf1ba8
commit 0119a77cb7
4 changed files with 7 additions and 7 deletions

View File

@@ -61,12 +61,12 @@ onMounted(async () => {
const navigateToCreateForm = () => {
// Assuming route for creating a new asistencia is named 'AsistenciaFormNew'
router.push({ name: 'AsistenciaFormNew' });
router.push({ name: 'asistencias-new' });
};
const handleEditAsistencia = (asistenciaId) => {
// Assuming route for editing is named 'AsistenciaFormEdit'
router.push({ name: 'AsistenciaFormEdit', params: { id: asistenciaId } });
router.push({ name: 'asistencias-edit', params: { id: asistenciaId } });
};
</script>

View File

@@ -180,7 +180,7 @@ onMounted(() => {
})
const goToCreateEmployee = () => {
router.push('/empleados/new') // Assuming this is the route for EmpleadoForm.vue for creation
router.push({ name: 'empleados-new' });
}
</script>

View File

@@ -65,14 +65,14 @@ onMounted(async () => {
const navigateToCreateForm = () => {
// Assuming your route for creating a new planilla is named 'PlanillaFormNew'
// This name should match what's defined in your router configuration
router.push({ name: 'PlanillaFormNew' });
router.push({ name: 'planillas-new' });
};
// Navigate to the form for editing an existing planilla
const handleEditPlanilla = (planillaId) => {
// Assuming your route for editing is named 'PlanillaFormEdit'
// This name should match what's defined in your router configuration
router.push({ name: 'PlanillaFormEdit', params: { id: planillaId } });
router.push({ name: 'planillas-edit', params: { id: planillaId } });
};
</script>

View File

@@ -61,12 +61,12 @@ onMounted(async () => {
const navigateToCreateForm = () => {
// Assuming route for creating a new tarea is named 'TareaFormNew'
router.push({ name: 'TareaFormNew' });
router.push({ name: 'tareas-new' });
};
const handleEditTarea = (tareaId) => {
// Assuming route for editing is named 'TareaFormEdit'
router.push({ name: 'TareaFormEdit', params: { id: tareaId } });
router.push({ name: 'tareas-edit', params: { id: tareaId } });
};
</script>