feat:修改任务接口传参

This commit is contained in:
lixg
2023-03-03 14:03:41 +08:00
parent f0276906c1
commit b14f26053e
14 changed files with 36 additions and 31 deletions

View File

@@ -117,7 +117,7 @@ const {
// console.log("type", type);
const { data } =
taskId && taskId !== "undefined"
? useRequest(TASK_WORK_DETAIL, { workId, taskId }, (e) => {
? useRequest(TASK_WORK_DETAIL, { workId, taskId, type }, (e) => {
if (e.code === 6) {
console.log("作业判断", e);
router.push({
@@ -125,7 +125,7 @@ const { data } =
});
}
})
: useRequest(TASK_WORK_DETAIL, { workId }, (e) => {
: useRequest(TASK_WORK_DETAIL, { workId, type }, (e) => {
if (e.code === 6) {
console.log("作业判断", e);
router.push({