From a7ecfb68c18dd15c4d6b93e2ff6a5c7d8616240e Mon Sep 17 00:00:00 2001 From: 抓蛙师 <770492966@qq.com> Date: 星期一, 13 九月 2021 13:57:03 +0800 Subject: [PATCH] 字典类型 数据解析状态对应字典调整 --- ruoyi-ui/src/utils/ruoyi.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ruoyi-ui/src/utils/ruoyi.js b/ruoyi-ui/src/utils/ruoyi.js index b426a31..68fb6bb 100644 --- a/ruoyi-ui/src/utils/ruoyi.js +++ b/ruoyi-ui/src/utils/ruoyi.js @@ -18,7 +18,7 @@ if ((typeof time === 'string') && (/^[0-9]+$/.test(time))) { time = parseInt(time) } else if (typeof time === 'string') { - time = time.replace(new RegExp(/-/gm), '/'); + time = time.replace(new RegExp(/-/gm), '/').replace('T', ' ').replace(new RegExp(/\.[\d]{3}/gm),''); } if ((typeof time === 'number') && (time.toString().length === 10)) { time = time * 1000 -- Gitblit v1.9.3