feat(sep): testing create sep

This commit is contained in:
riefive
2025-10-23 16:15:04 +07:00
parent abb0881338
commit fb3e10bd11
4 changed files with 131 additions and 118 deletions
+2
View File
@@ -893,6 +893,8 @@ onMounted(() => {
</Cell>
</Block>
<!-- {{ JSON.stringify(errors, null, 2) }} -->
<!-- Actions -->
<div class="mt-6 flex justify-end gap-2">
<Button
+3 -2
View File
@@ -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