Browse Source

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

RuoYi 3 years ago
parent
commit
b8a8583598
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

+ 1 - 1
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);