problemas con las rutas al buscar equipo, carrito, modulo
This commit is contained in:
parent
6896f35197
commit
dd7b942bd8
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user