瀏覽代碼

空数据

natasha 3 年之前
父節點
當前提交
d64f1ccd6c
共有 1 個文件被更改,包括 2 次插入1 次删除
  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) {