时间戳转 日期格式
getTimeStrFormat(timeStr) { //获取格式化的时间 yyyy-MM-dd let timeObj; if (timeStr) { timeObj = new Date(timeStr.replace(/-/g, "/")); } if (!timeStr || timeObj == "Invalid Date") timeObj = new Date(); return timeObj.getFullYear() + "-" + (timeObj.getMonth() + 1) + "-" + timeObj.getDate(); },