|
@@ -25,7 +25,7 @@
|
|
|
<div class="line"></div>
|
|
|
<div class="title">下次课程</div>
|
|
|
</div>
|
|
|
- <img class="rightRouter" @click="handleRouter('/curriculum')" src="@/img/homePage/back.png" />
|
|
|
+ <img class="rightRouter" @click="handleRouterCurriculum" src="@/img/homePage/back.png" />
|
|
|
</div>
|
|
|
<el-skeleton class="elSkeleton" :loading="classDataLoading">
|
|
|
<template #template>
|
|
@@ -65,6 +65,7 @@ import curriculum_gym from "./components/curriculum/curriculum_gym.vue"
|
|
|
import curriculum_gyt from "./components/curriculum/curriculum_gyt.vue"
|
|
|
import { getRemind_gyt, getRecentCourseSchedule_gym } from "@/api/homePage.api"
|
|
|
import { httpAjax } from "@/plugin/httpAjax"
|
|
|
+import { format } from "@/libs/tools"
|
|
|
|
|
|
const userStoreHook = userStore()
|
|
|
const router = useRouter()
|
|
@@ -178,6 +179,14 @@ function handleRouter(url?: string) {
|
|
|
btnShow: [true]
|
|
|
})
|
|
|
}
|
|
|
+function handleRouterCurriculum() {
|
|
|
+ router.push({
|
|
|
+ path: "/curriculum",
|
|
|
+ query: {
|
|
|
+ date: classData.value.classDate ? format(classData.value.classDate) : ""
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
.homePageNav.navContainer {
|