RuoYi
2020-03-31 f9799cd4446dfebc1327a5329675d2b7771d243e
修复时间格式不支持ios问题
已修改1个文件
2 ■■■■■ 文件已修改
ruoyi-ui/src/utils/ruoyi.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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