mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-14 21:36:46 +08:00
feat:判断任务是否有学员
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
|
||||
<script setup>
|
||||
import ReturnHead from "@/components/ReturnHead.vue";
|
||||
import { computed, reactive, toRefs, onUnmounted, ref } from "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";
|
||||
@@ -76,7 +76,15 @@ const {
|
||||
} = useRoute();
|
||||
const router = useRouter();
|
||||
console.log("外链信息", linkId);
|
||||
const { data } = useRequest(LINK_DETAILS(linkId));
|
||||
|
||||
const { data } = useRequest(LINK_DETAILS(linkId), {}, (e) => {
|
||||
if (e.code === 6) {
|
||||
router.push({
|
||||
path: "/notpath",
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
console.log("外链信息", data);
|
||||
const userInfo = computed(() => store.state.userInfo);
|
||||
const goOuterChain = () => {
|
||||
|
||||
Reference in New Issue
Block a user