时间戳转换为日期时间格式函数
/**
* @description: 转换时间格式(yyyy-MM-dd HH:mm:ss)
* @param {String} str 后台返回时间格式(时间戳)
*/
dateFormat(str) {
const dateee = new Date(str).toJSON()
const date = new Date(+new Date(dateee) + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
return date
},