refactor: return data
This commit is contained in:
parent
15cbdcf74c
commit
49ed0f5095
1 changed files with 3 additions and 1 deletions
|
|
@ -418,8 +418,10 @@ const useBranchStore = defineStore('api-branch', () => {
|
||||||
const res = await api.delete(`branch/${branchId}/attachment/${name}`);
|
const res = await api.delete(`branch/${branchId}/attachment/${name}`);
|
||||||
|
|
||||||
if (res.status === 204) {
|
if (res.status === 204) {
|
||||||
return res.data;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue