From e24f93ec8bb373bb78c8325456a7e95d8296b9de Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 21 Aug 2025 13:39:20 +0700 Subject: [PATCH] feat(biz-type): add response type and response data --- src/stores/business-type/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/stores/business-type/index.ts b/src/stores/business-type/index.ts index 443852e0..d9ef83f2 100644 --- a/src/stores/business-type/index.ts +++ b/src/stores/business-type/index.ts @@ -37,10 +37,13 @@ const useBusinessTypeStore = defineStore('business-type-store', () => { return false; } - async function create(data: BusinessTypePayLoad) { - const res = await api.post('/business-type', { + async function create( + data: BusinessTypePayLoad, + ): Promise { + const res = await api.post('/business-type', { ...data, }); + if (res.status < 400) { return res.data; }