gcz 4 lat temu
rodzic
commit
e40907844b
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      pages/center/monthly/monthly.vue

+ 5 - 0
pages/center/monthly/monthly.vue

@@ -62,6 +62,7 @@
 				// this.getMessageList()
 				this.$u.api.getMonthList({pageSize:pageSize ,pageNum: pageNum})
 				.then(res=>{
+					if(res.code == 200){
 					console.log('res',res)
 					// 接口返回的当前页数据列表 (数组)
 					let curPageData = res.data.rows;
@@ -108,7 +109,11 @@
 					this.beginTime = year + '.' + month + '.' + day
 					console.log(this.beginTime)
 					this.endTime = year2 + '.' + month2 + '.' + day2
+					}else{
+						this.mescroll.endErr()
+					}
 				}).catch(err=>{
+					console.log('err',err);
 					this.$refs.uToast.show({
 						title: err.msg,
 						type: 'error',