Kaynağa Gözat

1、更新第一节课

liyanbo 9 ay önce
ebeveyn
işleme
336540fb90
2 değiştirilmiş dosya ile 6 ekleme ve 14 silme
  1. 1 1
      src/views/AIDevelop.vue
  2. 5 13
      src/views/AIGeneralCourse.vue

+ 1 - 1
src/views/AIDevelop.vue

@@ -394,7 +394,7 @@ onMounted(async () => {
             index: courseTemp.courseLabel,
             title: menuDict.value[courseTemp.courseLabel]
           }
-          if (courseTemp.courseLabel === '3') {
+          if (courseTemp.courseLabel === '3' || courseTemp.courseLabel === '5') {
             temp.children = [
               {
                 key: menuIndex,

+ 5 - 13
src/views/AIGeneralCourse.vue

@@ -280,23 +280,15 @@ const goBack = () => {
 }
 
 const goToAIExperience = outlineData => {
-  if (outlineData.ctTypeSort === 2) {
+
+  // if (outlineData.ctTypeSort === 2) {
     router.push({
       path: '/ai-develop', // 跳转视频页面
       query: { typeId: outlineData.id, typeName: outlineData.ctType }
     })
-  } else {
-    if (localStorage.getItem('userName') === 'aiTest') {
-    } else {
-      //提示禁用
-      Message().notifyWarning(
-        localStorage.getItem('userName') === 'aiTest'
-          ? '您的账号并未开放此课程!'
-          : '演示版未开放此课程!',
-        true
-      )
-    }
-  }
+  // } else {
+  //   Message().notifyWarning(localStorage.getItem('userName') === "aiTest" ? '您的账号并未开放此课程!' : '演示版未开放此课程!', true)
+  // }
 }
 </script>