refactor: return data

This commit is contained in:
Net 2024-09-16 10:28:49 +07:00
parent 15cbdcf74c
commit 49ed0f5095

View file

@ -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 {