feat(sep): testing save of sep
This commit is contained in:
@@ -73,7 +73,7 @@ const [supportCode, supportCodeAttrs] = defineField('supportCode')
|
||||
|
||||
// Submit handler
|
||||
const onSubmit = handleSubmit((values) => {
|
||||
console.log('✅ Validated form values:', values)
|
||||
console.log('✅ Validated form values:', JSON.stringify(values, null, 2))
|
||||
emit('event', 'save-sep', values)
|
||||
})
|
||||
|
||||
|
||||
@@ -227,11 +227,11 @@ function handleEvent(menu: string, value: string) {
|
||||
return
|
||||
}
|
||||
if (menu === 'back') {
|
||||
navigateTo('/bpjs/sep')
|
||||
navigateTo('/integration/bpjs/sep')
|
||||
}
|
||||
if (menu === 'save-sep') {
|
||||
createSep(createSepPayload()).then(() => {
|
||||
navigateTo('/bpjs/sep')
|
||||
navigateTo('/integration/bpjs/sep')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user