hookehuyr

refactor(布局): 移除StudyCoursePage的active-tab属性并统一添加AppLayout到LearningRecordsPage

统一页面布局结构,移除StudyCoursePage中多余的active-tab属性
为LearningRecordsPage添加缺失的AppLayout组件以保持一致性
1 <template> 1 <template>
2 +<AppLayout :has-title="false">
2 <div class="bg-gradient-to-b from-green-50/70 to-white/90 min-h-screen pb-20"> 3 <div class="bg-gradient-to-b from-green-50/70 to-white/90 min-h-screen pb-20">
3 <!-- Course List --> 4 <!-- Course List -->
4 <van-list 5 <van-list
...@@ -103,6 +104,7 @@ ...@@ -103,6 +104,7 @@
103 <p class="mt-4 text-gray-500">暂无学习记录</p> 104 <p class="mt-4 text-gray-500">暂无学习记录</p>
104 </div> 105 </div>
105 </div> 106 </div>
107 +</AppLayout>
106 </template> 108 </template>
107 109
108 <script setup> 110 <script setup>
...@@ -110,6 +112,7 @@ import { ref } from 'vue'; ...@@ -110,6 +112,7 @@ import { ref } from 'vue';
110 import { useRoute, useRouter } from 'vue-router'; 112 import { useRoute, useRouter } from 'vue-router';
111 import { useTitle } from '@vueuse/core'; 113 import { useTitle } from '@vueuse/core';
112 import FrostedGlass from '@/components/ui/FrostedGlass.vue'; 114 import FrostedGlass from '@/components/ui/FrostedGlass.vue';
115 +import AppLayout from '@/components/layout/AppLayout.vue';
113 import { formatDate } from '@/utils/tools'; 116 import { formatDate } from '@/utils/tools';
114 117
115 // 导入接口 118 // 导入接口
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
3 * @Description: 课程详情页面 3 * @Description: 课程详情页面
4 --> 4 -->
5 <template> 5 <template>
6 -<AppLayout :has-title="false" active-tab="profile"> 6 +<AppLayout :has-title="false">
7 <div class="study-course-page bg-gradient-to-b from-green-50/70 to-white/90 min-h-screen"> 7 <div class="study-course-page bg-gradient-to-b from-green-50/70 to-white/90 min-h-screen">
8 <div v-if="course" class="flex flex-col h-screen"> 8 <div v-if="course" class="flex flex-col h-screen">
9 <!-- 固定区域:课程封面和标签页 --> 9 <!-- 固定区域:课程封面和标签页 -->
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
181 </div> 181 </div>
182 </van-popup> 182 </van-popup>
183 </div> 183 </div>
184 - </AppLayout> 184 +</AppLayout>
185 </template> 185 </template>
186 186
187 <script setup> 187 <script setup>
......