Fix: debug back btn in add, edit, detail content page
This commit is contained in:
@@ -83,7 +83,7 @@ async function handleActionClick(eventType: string) {
|
||||
isConfirmationOpen.value = true
|
||||
}
|
||||
|
||||
if (eventType === 'cancel') {
|
||||
if (eventType === 'back') {
|
||||
if (props.callbackUrl) {
|
||||
await navigateTo(props.callbackUrl)
|
||||
return
|
||||
|
||||
@@ -61,7 +61,7 @@ function handleAction(type: string) {
|
||||
})
|
||||
break
|
||||
|
||||
case 'cancel':
|
||||
case 'back':
|
||||
goBack()
|
||||
break
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleActionClick(eventType: string) {
|
||||
isConfirmationOpen.value = true
|
||||
}
|
||||
|
||||
if (eventType === 'cancel') {
|
||||
if (eventType === 'back') {
|
||||
if (props.callbackUrl) {
|
||||
await navigateTo(props.callbackUrl)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user