瀏覽代碼

出场判断

zaijin 3 年之前
父節點
當前提交
d2a51ac52c
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      pages/getout/getout.vue

+ 6 - 2
pages/getout/getout.vue

@@ -147,6 +147,7 @@
 					// 	title: res.msg,
 					// 	type: 'success',
 					// });
+					console.log(res.data.rows)
 					this.roadspaceList = res.data.rows;
 					console.log('handleGetRoadspace',res)
 				}).catch(err=>{
@@ -360,8 +361,11 @@
 		},
 		filters:{
 			timeago(inTime,currentTime){
-				var time_start = new Date(inTime.replace(/-/g,'/'));
-				var clock_start = time_start.getTime();
+				var time_start = '', clock_start = ''
+				if (inTime) {
+					time_start = new Date(inTime.replace(/-/g,'/'));
+					time_start.getTime();
+				}
 				// console.log('currentTime',this.currentTime)
 				
 				const formatNumber = (num) => {