feat: 07 => implement status toggle functionality in AgenciesDialog and MainPage components
This commit is contained in:
parent
f18d34b02d
commit
4994792597
3 changed files with 97 additions and 7 deletions
|
|
@ -40,7 +40,7 @@ export const useInstitution = defineStore('institution-store', () => {
|
|||
params,
|
||||
},
|
||||
)
|
||||
: await api.get<PaginationResult<Institution>>(`/institution`, {
|
||||
: await api.get<PaginationResult<Institution>>('/institution', {
|
||||
params,
|
||||
});
|
||||
|
||||
|
|
@ -80,6 +80,7 @@ export const useInstitution = defineStore('institution-store', () => {
|
|||
const res = await api.put(`/institution/${data.id}`, {
|
||||
...data,
|
||||
id: undefined,
|
||||
group: undefined,
|
||||
});
|
||||
if (res.status < 400) {
|
||||
return res.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue