refactor: edit opt -> opts
This commit is contained in:
parent
43ef034aaa
commit
fad5043f6c
1 changed files with 4 additions and 4 deletions
|
|
@ -329,7 +329,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
}
|
||||
|
||||
async function deleteByIdCheckUp(
|
||||
opt: {
|
||||
opts: {
|
||||
employeeId: string;
|
||||
checkUpId?: string;
|
||||
},
|
||||
|
|
@ -340,7 +340,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
},
|
||||
) {
|
||||
const res = await api.delete<Employee>(
|
||||
`/employee/${opt.employeeId}/checkup/${opt.checkUpId}`,
|
||||
`/employee/${opts.employeeId}/checkup/${opts.checkUpId}`,
|
||||
{
|
||||
headers: {
|
||||
'X-Session-Id': flow?.sessionId,
|
||||
|
|
@ -357,7 +357,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
}
|
||||
|
||||
async function deleteByIdWork(
|
||||
opt: {
|
||||
opts: {
|
||||
employeeId: string;
|
||||
workId?: string;
|
||||
},
|
||||
|
|
@ -368,7 +368,7 @@ const useEmployeeStore = defineStore('api-employee', () => {
|
|||
},
|
||||
) {
|
||||
const res = await api.delete<Employee>(
|
||||
`/employee/${opt.employeeId}/work/${opt.workId}`,
|
||||
`/employee/${opts.employeeId}/work/${opts.workId}`,
|
||||
{
|
||||
headers: {
|
||||
'X-Session-Id': flow?.sessionId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue