problemas con las rutas al buscar equipo, carrito, modulo

This commit is contained in:
xXpuma99Xx 2022-07-12 16:46:13 -05:00
parent 6896f35197
commit dd7b942bd8
4 changed files with 11 additions and 12 deletions

View File

@ -99,9 +99,7 @@ export default {
.then((res) => {
this.updateModulo(res.data)
this.updateIsLoading(false)
this.$router.push({
path: '../buscar_modulo/' + this.idModulo,
})
this.$router.push(`/admin/modulos/buscar_modulo/${this.idModulo}`)
})
.catch((err) => {
this.updateIsLoading(false)

View File

@ -118,9 +118,10 @@ export default {
.then((res) => {
this.updateCarrito(res.data)
this.updateIsLoading(false)
this.$router.push({
path: '../buscar_carrito/' + this.idCarrito,
})
if (!this.idModulo) this.idModulo = res.data.modulo.id_modulo
this.$router.push(
`/operador/carritos/buscar_carrito/${this.idCarrito}`
)
})
.catch((err) => {
this.updateIsLoading(false)

View File

@ -79,9 +79,9 @@ export default {
// this.obtenerPrestamos()
// this.obtenerReportes()
this.obtenerMotivos()
this.$router.push({
path: '../buscar_equipo/' + this.numeroInventario,
})
this.$router.push(
`/operador/equipos/buscar_equipo/${this.numeroInventario}`
)
})
.catch((err) => {
this.updateIsLoading(false)

View File

@ -73,9 +73,9 @@ export default {
.then((res) => {
this.updateUsuario(res.data)
this.updateIsLoading(false)
this.$router.push({
path: '../buscar_usuario/' + this.numeroCuenta,
})
this.$router.push(
`/operador/usuarios/buscar_usuario/${this.numeroCuenta}`
)
})
.catch((err) => {
this.updateIsLoading(false)