Browse Source

修复apple/webkit浏览器时间无法格式化

pull/334/head
RuoYi 3 years ago
parent
commit
b8a8583598
  1. 2
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

2
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@ -1586,7 +1586,7 @@ var table = {
if (!format) format = "yyyy-MM-dd";
switch (typeof date) {
case "string":
date = new Date(date.replace(/-/, "/"));
date = new Date(date.replace(/-/g, "/"));
break;
case "number":
date = new Date(date);

Loading…
Cancel
Save