gaoluyang
2025-05-12 e12e0f5f8e1c5fac64b6c08f7b1477a2b580f438
src/utils/index.js
@@ -4,7 +4,7 @@
 * 表格时间格式化
 */
export function formatDate(cellValue) {
  if (cellValue == null || cellValue == "") return "";
  if (cellValue == null || cellValue == "") return ""
  var date = new Date(cellValue) 
  var year = date.getFullYear()
  var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1