Procházet zdrojové kódy

Merge remote-tracking branch 'origin/master'

liyanbo před 9 měsíci
rodič
revize
8a7572978c

+ 2 - 0
src/components/HomePage.vue

@@ -109,6 +109,7 @@ import studyImg from '@/assets/images/study.png'
 // 退出图标
 import logoutIcon from '@/assets/icon/logout.png'
 import {Message} from "@/utils/message/Message.js";
+
 // 获取当前路由对象
 const router = useRouter()
 // 退出
@@ -175,6 +176,7 @@ watch(selectedGrade, newValue => {
 onMounted(() => {
   fetchCtTypes()
 })
+
 </script>
 
 <style scoped lang="scss">

+ 2 - 2
src/views/AIDevelop.vue

@@ -161,11 +161,11 @@
               </div>
             </div>
             <div v-else class="no-options">
-              <!--          暂无选项-->
+              <!-- 暂无选项 -->
             </div>
             <!-- 底部按钮 -->
             <div class="dialog-footer">
-              <!--          <el-button class="child-button cancel" @click="questionDialogVisible = false; showAIDialog = false">取消</el-button>-->
+              <!-- <el-button class="child-button cancel" @click="questionDialogVisible = false; showAIDialog = false">取消</el-button>-->
               <el-button
                 class="child-button confirm"
                 @click="handleSubmitAnswer"

+ 11 - 14
src/views/AIGeneralCourse.vue

@@ -53,7 +53,7 @@
         <div class="inner-box left-box">
           <div class="box-icon" @click="goBack">
             <el-icon class="left-icon"><ArrowLeftBold /></el-icon>
-            {{ pageTitle }}
+            {{ pageTitle}}
           </div>
           <div class="dropdown-box">
             <!-- 下拉菜单 -->
@@ -201,10 +201,17 @@ const courseTitles = computed(() => {
   return Array.from({ length: 8 }, (_, i) => getCourseTitle(i + 1))
 })
 
+  // 首页点击渲染后的页面title
+const pageTitle = ref('')
 onMounted(() => {
   fetchCtTypes()
+  const title = router.currentRoute.value.query.title
+  if (title) {
+    pageTitle.value = title
+  }
 })
 
+
 import { Message } from '@/utils/message/Message.js'
 
 // 搜索框
@@ -216,6 +223,8 @@ const filteredTitles = computed(() => {
   }
   return courseTitles.filter(title => title.includes(SearchInput.value))
 })
+
+
 // 添加按钮显示状态
 const buttonVisible = ref(false)
 
@@ -223,8 +232,6 @@ const goBack = () => {
   router.go(-1) // 返回上一页
 }
 
-
-
 const goToAIExperience = outlineData => {
 
   if (outlineData.ctTypeSort === 2) {
@@ -239,16 +246,6 @@ const goToAIExperience = outlineData => {
       Message().notifyWarning(localStorage.getItem('userName') === "aiTest" ? '您的账号并未开放此课程!' : '演示版未开放此课程!', true)
   }
 }
-
-
-// 首页点击渲染后的页面title
-const pageTitle = ref('')
-onMounted(() => {
-  const title = router.currentRoute.value.query.title
-  if (title) {
-    pageTitle.value = title
-  }
-})
 }
 
 
@@ -441,7 +438,7 @@ onMounted(() => {
   flex: 0.6;
   display: flex; // 添加 flex 布局
   align-items: center; // 垂直居中
-  color: bl; // 设置图标颜色为白色
+  color: black; // 设置图标颜色为白色
   padding-left: rpx(15);
   font-size: rpx(10); // 设置图标大小,可按需调整
   cursor: pointer; // 添加鼠标指针样式