gaoluyang
2025-05-26 f87e4eca384ed8c000f0edbdc3584059f6c9c6e2
src/utils/index.js
@@ -1,10 +1,10 @@
import { parseTime } from '@/ruoyi'
import { parseTime } from './ruoyi'
/**
 * 表格时间格式化
 */
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