From 49ed0f5095ae854fa7fe868ce65ad5da211c9068 Mon Sep 17 00:00:00 2001 From: Net Date: Mon, 16 Sep 2024 10:28:49 +0700 Subject: [PATCH] refactor: return data --- src/stores/branch/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/branch/index.ts b/src/stores/branch/index.ts index 8afef92f..21817527 100644 --- a/src/stores/branch/index.ts +++ b/src/stores/branch/index.ts @@ -418,8 +418,10 @@ const useBranchStore = defineStore('api-branch', () => { const res = await api.delete(`branch/${branchId}/attachment/${name}`); if (res.status === 204) { - return res.data; + return true; } + + return false; } return {