Ver Fonte

空数据

natasha há 3 anos atrás
pai
commit
d64f1ccd6c
1 ficheiros alterados com 2 adições e 1 exclusões
  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) {