|
@@ -223,35 +223,9 @@ const goBack = () => {
|
|
|
router.go(-1) // 返回上一页
|
|
router.go(-1) // 返回上一页
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 添加跳转课程页面的函数
|
|
|
|
|
-// const goToAIExperience = index => {
|
|
|
|
|
-// const routes = [
|
|
|
|
|
-// '/ai-initial-experience', // 跳转AI初体验
|
|
|
|
|
-// '/ai-develop' // 跳转AI发展历程
|
|
|
|
|
-// // '/ai-development-history',
|
|
|
|
|
-// ]
|
|
|
|
|
-// // 跳转页面渲染title
|
|
|
|
|
-// const title = `0${index} ${getCourseTitle(index)}` // 定义 title 变量
|
|
|
|
|
-// if (index >= 1 && index <= routes.length && classOutlineData.value.length >= index) {
|
|
|
|
|
-// const selectedItem = classOutlineData.value[index - 1]
|
|
|
|
|
-// router.push({
|
|
|
|
|
-// path: routes[index - 1],
|
|
|
|
|
-// query: { title: title, id: selectedItem.id }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
const goToAIExperience = outlineData => {
|
|
const goToAIExperience = outlineData => {
|
|
|
- // const routes = [
|
|
|
|
|
- // '/ai-initial-experience', // 跳转AI初体验
|
|
|
|
|
- // '/ai-develop' // 跳转AI发展历程
|
|
|
|
|
- // // '/ai-development-history',
|
|
|
|
|
- // ]
|
|
|
|
|
- // // 跳转页面渲染title
|
|
|
|
|
- // const title = `0${index} ${getCourseTitle(index)}` // 定义 title 变量
|
|
|
|
|
- // if (index >= 1 && index <= routes.length) {
|
|
|
|
|
- // router.push({
|
|
|
|
|
- // path: routes[index - 1],
|
|
|
|
|
- // query: { typeId: title, title: title }
|
|
|
|
|
- // })
|
|
|
|
|
- // }
|
|
|
|
|
|
|
|
|
|
if (outlineData.ctTypeSort === 2) {
|
|
if (outlineData.ctTypeSort === 2) {
|
|
|
router.push({
|
|
router.push({
|
|
@@ -266,17 +240,6 @@ const goToAIExperience = outlineData => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// 添加图片路径数组
|
|
|
|
|
-// const courseImages = ref([
|
|
|
|
|
-// './src/assets/images/one.png',
|
|
|
|
|
-// './src/assets/images/two.png',
|
|
|
|
|
-// './src/assets/images/three.png',
|
|
|
|
|
-// './src/assets/images/four.png',
|
|
|
|
|
-// './src/assets/images/five.png',
|
|
|
|
|
-// './src/assets/images/six.png',
|
|
|
|
|
-// './src/assets/images/seven.png',
|
|
|
|
|
-// './src/assets/images/eight.png'
|
|
|
|
|
-// ])
|
|
|
|
|
|
|
|
|
|
// 首页点击渲染后的页面title
|
|
// 首页点击渲染后的页面title
|
|
|
const pageTitle = ref('')
|
|
const pageTitle = ref('')
|
|
@@ -287,6 +250,8 @@ onMounted(() => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|