Jelajahi Sumber

1、移出旧版本课程权限

liyanbo 6 bulan lalu
induk
melakukan
da8aa53664
1 mengubah file dengan 0 tambahan dan 24 penghapusan
  1. 0 24
      src/views/AIDevelop.vue

+ 0 - 24
src/views/AIDevelop.vue

@@ -363,8 +363,6 @@ const handleVideoEnded = () => {
 // 禁用视频
 const disableVideo = (index = course.value.key) => {
 
-  console.log("******:",courseDataScope.value,videoPathMap.value[index].id)
-
   isDisabled.value = !courseDataScope.value.some(item => Number(item) === videoPathMap.value[index].id)
   if (isDisabled.value) {
     Message().notifyWarning('您的账号并未开放此课程!', true)
@@ -372,28 +370,6 @@ const disableVideo = (index = course.value.key) => {
   }
 
   return isDisabled.value;
-
-  // if (localStorage.getItem('userName') === 'aiTest' && gradeId.value === "1") {
-  //     let dis = Number(index.substring(index.indexOf("-") + 1));
-  //     if (dis > 5) {
-  //       //提示禁用
-  //       Message().notifyWarning('您的账号并未开放此课程!', true)
-  //       return true
-  //     }
-  // }
-  //
-  // if (localStorage.getItem('userName') === "zdxyz") {
-  //   if (localStorage.getItem('selectedGradeId') !== "1" || typeSort.value !== "02") {
-  //     let dis = Number(index.substring(index.indexOf("-") + 1));
-  //     if (dis > 2) {
-  //       //提示禁用
-  //       Message().notifyWarning('您的账号并未开放此课程!', true)
-  //       return true
-  //     }
-  //   }
-  // }
-  //
-  // return false
 }
 
 // 处理视频时间更新事件