refactor: edit get value
This commit is contained in:
parent
deb50dc65d
commit
11144fd592
1 changed files with 3 additions and 1 deletions
|
|
@ -1092,7 +1092,9 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
|||
const _data = await employeeStore.fetchById(id);
|
||||
|
||||
if (_data) {
|
||||
const _attach = await employeeStore.listAttachment(_data.id);
|
||||
const _attach = await employeeStore.listAttachment({
|
||||
parentId: _data.id,
|
||||
});
|
||||
|
||||
state.value.currentEmployee = _data;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue