feat(sep): testing create sep
This commit is contained in:
@@ -893,6 +893,8 @@ onMounted(() => {
|
||||
</Cell>
|
||||
</Block>
|
||||
|
||||
<!-- {{ JSON.stringify(errors, null, 2) }} -->
|
||||
|
||||
<!-- Actions -->
|
||||
<div class="mt-6 flex justify-end gap-2">
|
||||
<Button
|
||||
|
||||
@@ -274,8 +274,9 @@ async function handleEvent(menu: string, value: any) {
|
||||
isSaveLoading.value = true
|
||||
createSep(makeSepData(value))
|
||||
.then((res) => {
|
||||
const code = res?.metaData?.code
|
||||
const message = res?.metaData?.message
|
||||
const body = res?.body
|
||||
const code = body?.metaData?.code
|
||||
const message = body?.metaData?.message
|
||||
if (code && code !== '200') {
|
||||
toast({ title: 'Gagal', description: message || 'Gagal membuat SEP', variant: 'destructive' })
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user