Commit 992db9e6 authored by rene's avatar rene
Browse files

arreglar unos problemas de historial en el router

parent 3d3eaf75
...@@ -61,7 +61,7 @@ const router = new Router({ ...@@ -61,7 +61,7 @@ const router = new Router({
component: Barca, component: Barca,
meta: { meta: {
requiresAuth: true, requiresAuth: true,
backCallback: (router, route) => router.push(`/barcas`), backCallback: () => history.back(),
}, },
}, },
{ {
...@@ -85,8 +85,7 @@ const router = new Router({ ...@@ -85,8 +85,7 @@ const router = new Router({
component: Consenso, component: Consenso,
meta: { meta: {
requiresAuth: true, requiresAuth: true,
backCallback: (router, route) => backCallback: () => history.back(),
router.push(`/barcas/${route.params.barcaId}`),
}, },
}, },
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment