zhongtianhaoyuan 2 anos atrás
pai
commit
ba84ccab8e
1 arquivos alterados com 6 adições e 1 exclusões
  1. 6 1
      pages/mine/often/oftenRoute.vue

+ 6 - 1
pages/mine/often/oftenRoute.vue

@@ -86,8 +86,13 @@
 			
 			
 				//联网加载数据
 				//联网加载数据
 				this.status = 'loading';
 				this.status = 'loading';
+				let commonNo =  uni.getStorageSync("firstAuthentication").commonId
+				if(!commonNo){
+					this.mescroll.endBySize(0, 0);
+					return
+				}
 				this.$request.baseRequest('get', '/commonRoute/select', {
 				this.$request.baseRequest('get', '/commonRoute/select', {
-						commonId: uni.getStorageSync("firstAuthentication").commonId,
+						commonId: commonNo,
 						pageSize: page.size,
 						pageSize: page.size,
 						currentPage: page.num
 						currentPage: page.num
 					}).then(res => {
 					}).then(res => {