mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-21 00:36:48 +08:00
feat:判断任务是否有学员
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, onUnmounted, reactive, ref, toRefs } from "vue";
|
||||
import { computed, onUnmounted, reactive, ref, toRefs, watch } from "vue";
|
||||
import { request, useRequest } from "@/api/request";
|
||||
import {
|
||||
TASK_WORK_COMMIT,
|
||||
@@ -117,8 +117,20 @@ const {
|
||||
// console.log("type", type);
|
||||
const { data } =
|
||||
taskId && taskId !== "undefined"
|
||||
? useRequest(TASK_WORK_DETAIL, { workId, taskId })
|
||||
: useRequest(TASK_WORK_DETAIL, { workId });
|
||||
? useRequest(TASK_WORK_DETAIL, { workId, taskId }, (e) => {
|
||||
if (e.code === 6) {
|
||||
router.push({
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
})
|
||||
: useRequest(TASK_WORK_DETAIL, { workId }, (e) => {
|
||||
if (e.code === 6) {
|
||||
router.push({
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
console.log("data==----->", data);
|
||||
//作业倒计时
|
||||
|
||||
Reference in New Issue
Block a user