mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-10 19:36:47 +08:00
feat:增加二维码判断
This commit is contained in:
@@ -57,7 +57,7 @@ import ReturnHead from "@/components/ReturnHead.vue";
|
||||
import { computed, reactive, toRefs, onUnmounted, ref, watch } from "vue";
|
||||
import img from "@/assets/image/uploadimg.png";
|
||||
import { request, useRequest } from "@/api/request";
|
||||
import { LINK_DETAILS, STUDY_RECORD } from "@/api/api";
|
||||
import { LINK_DETAILS, STUDY_RECORD, checkStudentExist } from "@/api/api";
|
||||
import { useRoute } from "vue-router/dist/vue-router";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useUserInfo } from "@/api/utils";
|
||||
@@ -78,11 +78,29 @@ const router = useRouter();
|
||||
console.log("外链信息", linkId);
|
||||
|
||||
const { data } = useRequest(LINK_DETAILS, { linkId, type }, (e) => {
|
||||
if (e.code === 6) {
|
||||
router.push({
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
useRequest(
|
||||
checkStudentExist,
|
||||
{
|
||||
targetId: infoId,
|
||||
type: type,
|
||||
chapterId: chapterOrStageId,
|
||||
courseId: taskId,
|
||||
},
|
||||
(res) => {
|
||||
console.log("判断任务是否删除", res);
|
||||
if (res.code === 7) {
|
||||
router.push({
|
||||
path: "/loseefficacy",
|
||||
});
|
||||
} else {
|
||||
if (e.code === 6) {
|
||||
router.push({
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
console.log("外链信息", data);
|
||||
|
||||
Reference in New Issue
Block a user