blue 2 жил өмнө
parent
commit
002335285a

+ 2 - 1
im-ui/src/api/date.js

@@ -21,7 +21,8 @@ let toTimeText = (timeStamp, simple) => {
 		//不属于今年
 		timeText = formatDateTime(dateTime);
 		if(simple){
-			timeText = timeText.substring(2,5);
+			console.log(timeText)
+			timeText = timeText.substr(2,5);
 		}
 	}
 	return timeText;

+ 1 - 1
im-uniapp/common/date.js

@@ -21,7 +21,7 @@ let toTimeText = (timeStamp, simple) => {
 		//不属于今年
 		timeText = formatDateTime(dateTime);
 		if(simple){
-			timeText = timeText.substring(2,5);
+			timeText = timeText.substr(2,5);
 		}
 	}
 	return timeText;