refactor: signal success all status
This commit is contained in:
parent
ba64702287
commit
9eb2ddea61
2 changed files with 30 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ export const useRequestList = defineStore('request-list', () => {
|
|||
return null;
|
||||
}
|
||||
|
||||
async function editStatusRequestWork(body: Step) {
|
||||
async function editStatusRequestWork(body: Step, successAll?: boolean) {
|
||||
const res = await api.put<Step>(
|
||||
`/request-work/${body.requestWorkId}/step-status/${body.step}`,
|
||||
{
|
||||
|
|
@ -245,6 +245,7 @@ export const useRequestList = defineStore('request-list', () => {
|
|||
requestWorkId: undefined,
|
||||
step: undefined,
|
||||
},
|
||||
{ params: { successAll } },
|
||||
);
|
||||
|
||||
if (res.status < 400) return res.data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue