fix: แก้สร้า
ลูกจ้างไม่ได้
This commit is contained in:
parent
726ba370ad
commit
cd682a814a
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const { image, ...payload } = data;
|
||||
const { code, image, ...payload } = data;
|
||||
const res = await api.post<
|
||||
Employee & { profileImageUrl: string; profileImageUploadUrl: string }
|
||||
>('/employee', payload, {
|
||||
|
|
@ -104,7 +104,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
transactionId?: string;
|
||||
},
|
||||
) {
|
||||
const { code , image, ...payload } = data;
|
||||
const { code, image, ...payload } = data;
|
||||
const res = await api.put<
|
||||
Employee & { imageUrl: string; profileImageUploadUrl: string }
|
||||
>(`/employee/${id}`, payload, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue