mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-09 02:46:47 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -208,6 +208,7 @@ import {
|
||||
PROJECT_DETAIL,
|
||||
SubmitExternalExam,
|
||||
UPDATE_CURRENT_TASK,
|
||||
checkStudentExist,
|
||||
} from "@/api/api";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import store from "@/store";
|
||||
@@ -224,12 +225,27 @@ const router = useRouter();
|
||||
const { commit, dispatch, state } = useStore();
|
||||
const data = computed(() => state.projectInfo);
|
||||
useRequest(PROJECT_PROCESS, { projectId: projectId, type }, (e) => {
|
||||
if (e.code === 6) {
|
||||
console.log("eee", e);
|
||||
router.push({
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
useRequest(
|
||||
checkStudentExist,
|
||||
{
|
||||
targetId: projectId,
|
||||
type: type,
|
||||
},
|
||||
(res) => {
|
||||
console.log("判断任务是否删除", res);
|
||||
if (res.code === 7) {
|
||||
router.push({
|
||||
path: "/loseefficacy",
|
||||
});
|
||||
} else {
|
||||
if (e.code === 6) {
|
||||
router.push({
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
watch(data, () => {
|
||||
if (data.value.code === 6) {
|
||||
|
||||
Reference in New Issue
Block a user