提交 4e4fbc22 编写于 作者: guangjun.yang's avatar guangjun.yang

解决时间格式问题

上级 acaf5edb
...@@ -235,9 +235,9 @@ export function convertTime(time, isToSlash = true) { ...@@ -235,9 +235,9 @@ export function convertTime(time, isToSlash = true) {
return '' return ''
} else { } else {
if(typeof time == 'object') { if(typeof time == 'object') {
return time.format("yyyy/MM/dd HH:mm:ss"); return time.format("yyyy/MM/dd hh:mm:ss");
} else { } else {
return new Date(time).format("yyyy/MM/dd HH:mm:ss"); return new Date(time).format("yyyy/MM/dd hh:mm:ss");
} }
// // time = time + ''; // // time = time + '';
// if(isToSlash) { // if(isToSlash) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册