natasha %!s(int64=3) %!d(string=hai) anos
pai
achega
d64f1ccd6c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/components/Personalcenter/Teachcourse.vue

+ 2 - 1
src/components/Personalcenter/Teachcourse.vue

@@ -114,12 +114,14 @@ export default {
         if(_this.userType=='TEACHER'){
             if (res.course_list && res.course_list.length > 0) {
                 list = res.course_list;
+                this.isEmpty = false;
             } else {
                 this.isEmpty = true;
             }
         }else{
             if (res.goods_list && res.goods_list.length > 0) {
                 list = res.goods_list; 
+                this.isEmpty = false;
             } else {
                 this.isEmpty = true;
             }
@@ -129,7 +131,6 @@ export default {
             return item;
         });
         this.list = list;
-        this.isEmpty = false;
       });
     },
     handleGoodsType(type) {