refactor: 02, 08 => screen.xs fetch scroll
This commit is contained in:
parent
6c48cb9383
commit
4a088c1aab
3 changed files with 347 additions and 298 deletions
|
|
@ -209,11 +209,10 @@ const useUserStore = defineStore('api-user', () => {
|
|||
responsibleDistrictId?: string;
|
||||
activeBranchOnly?: boolean;
|
||||
}) {
|
||||
const res = await api.get<Pagination<User[]>>(`/user`, { params: opts });
|
||||
const res = await api.get<Pagination<User[]>>('/user', { params: opts });
|
||||
|
||||
if (res && res.status === 200) {
|
||||
data.value = res.data;
|
||||
return data.value;
|
||||
return res.data;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue