This commit is contained in:
yuping
2022-12-13 19:28:28 +08:00
parent 5d2f88034a
commit d440b5aa82
2 changed files with 60 additions and 58 deletions

View File

@@ -147,6 +147,7 @@ import completed from "../../assets/image/completed.png";
import ongoing from "../../assets/image/ongoing.png"; import ongoing from "../../assets/image/ongoing.png";
import {request, usePage, useRequest} from "@/api/request"; import {request, usePage, useRequest} from "@/api/request";
import { import {
BASE_URL,
ROUTER_CHAPTER_LIST, ROUTER_CHAPTER_LIST,
ROUTER_LIST, ROUTER_LIST,
ROUTER_UNCOMPLETE_LIST, ROUTER_UNCOMPLETE_LIST,
@@ -174,10 +175,12 @@ async function gofun({ routerId }) {
// const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}}) // const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}})
// detail.value = data.data // detail.value = data.data
// state.showmapdetail = true; // state.showmapdetail = true;
router.push({ path: "/pathdetails", query: { routerId } }); // router.push({path: "/pathdetails", query: {routerId}});
window.location.href = `${BASE_URL}/pathdetails?routerId=${routerId}`
} }
function toUnTask() {} function toUnTask() {
}
</script> </script>
<style lang="scss"> <style lang="scss">
.modal { .modal {

View File

@@ -572,8 +572,7 @@ function toFinish(d) {
ElMessage.error('暂时未开放') ElMessage.error('暂时未开放')
return return
} }
window.parent.location.href = `${BASE_URL + types.value.path[d.type]}?id=${d.routerTaskId}&type=1&courseId=${d.courseId}` router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1, courseId: d.courseId}})
// router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1, courseId: d.courseId}})
} }
</script> </script>