RuoYi
2020-03-31 f9799cd4446dfebc1327a5329675d2b7771d243e
修复时间格式不支持ios问题
1 files modified
2 ■■■■■ changed files
ruoyi-ui/src/utils/ruoyi.js 2 ●●●●● patch | view | raw | blame | history
ruoyi-ui/src/utils/ruoyi.js
@@ -17,6 +17,8 @@
    } else {
        if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) {
            time = parseInt(time)
        } else if (typeof time === 'string') {
            time = time.replace(new RegExp(/-/gm), '/');
        }
        if ((typeof time === 'number') && (time.toString().length === 10)) {
            time = time * 1000