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

pull/334/head
RuoYi 3 years ago
parent 4f50365ac1
commit b8a8583598

@ -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