Merge pull request #190 from zurdi15/refactor/code_base

router.push adapted to new paths
This commit is contained in:
Zurdi
2023-04-20 18:30:24 +02:00
committed by GitHub

View File

@@ -58,7 +58,7 @@ async function updateRom(updatedData={...updatedRom.value}) {
emitter.emit('snackbarScan', {'msg': response.data.msg, 'icon': 'mdi-check-bold', 'color': 'green'})
rom.value = response.data.data
updatedRom.value = {...response.data.data}
router.push('/platform/'+rom.value.p_slug+'/roms/'+rom.value.id)
router.push('/platform/'+rom.value.p_slug+'/rom/'+rom.value.id)
}).catch((error) => {
emitter.emit('snackbarScan', {'msg': error.response.data.detail, 'icon': 'mdi-close-circle', 'color': 'red'})
})