Commit c9df44ff by 杨北旺

修复工具类问题

1 parent 9b3612e0
...@@ -78,7 +78,8 @@ export function commentTime(dateTimeStamp) { ...@@ -78,7 +78,8 @@ export function commentTime(dateTimeStamp) {
/**IOS时间兼容 */ /**IOS时间兼容 */
export function iosTimeFormat(time) { export function iosTimeFormat(time) {
return time.replace(/\-/g, '/') if (!time) return ''
return typeof time != 'string' ? time : time.replace(/\-/g, '/')
} }
/**获取时间段总时长 */ /**获取时间段总时长 */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!