dusenyao %!s(int64=5) %!d(string=hai) anos
pai
achega
46176a4a79
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/views/course_details/index.vue

+ 3 - 1
src/views/course_details/index.vue

@@ -9,7 +9,9 @@
         <div class="text">
         <div class="text">
           <p class="p1">{{ CourseData.name }}</p>
           <p class="p1">{{ CourseData.name }}</p>
           <p>Beijing language and Culture University</p>
           <p>Beijing language and Culture University</p>
-          <p>{{ CourseData.teacher_list[0].teacher_name }}</p>
+          <p>
+            {{ CourseData.teacher_list.length > 0 ? CourseData.teacher_list[0].teacher_name : '' }}
+          </p>
           <p>
           <p>
             <!-- Learn to design data models, build data warehouses and data lakes,
             <!-- Learn to design data models, build data warehouses and data lakes,
             automate data pipelines, and work with massive datasets. At the end
             automate data pipelines, and work with massive datasets. At the end