RuoYi
2019-12-31 9067369ce0eeaf8b4d6e0de309804361d7d25b5f
防止时间为空出现的异常
1 files modified
2 ■■■ changed files
ruoyi-ui/src/utils/ruoyi.js 2 ●●● patch | view | raw | blame | history
ruoyi-ui/src/utils/ruoyi.js
@@ -7,7 +7,7 @@
// 日期格式化
export function parseTime(time, pattern) {
    if (arguments.length === 0) {
    if (arguments.length === 0 || !time) {
        return null
    }
    const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}'