🐛 fix (general-consent): fix mapping data from api
This commit is contained in:
@@ -19,7 +19,17 @@ export function useQueryCRUDMode(key: string = 'mode') {
|
||||
})
|
||||
|
||||
const goToEntry = () => (mode.value = 'entry')
|
||||
const backToList = () =>(mode.value = 'list')
|
||||
const backToList = () => {
|
||||
router.push({
|
||||
path: route.path,
|
||||
query: {
|
||||
...route.query,
|
||||
mode: 'list',
|
||||
// HAPUS record-id
|
||||
'record-id': undefined,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
return { mode, goToEntry, backToList }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user