peng
2025-10-29 65956f8f44f764dd007b1a0141302b5614c9ca89
manager/src/utils/filters.js
@@ -214,6 +214,14 @@
  return mobile.replace(/(\d{3})(\d{4})(\d{4})/, '$1****$3')
}
/**
 * 日期格式化辅助函数
 * @param {string} str
 * @returns
 */
function padLeftZero(str) {
  return ('00' + str).substr(str.length);
}
export function formatDate(date, fmt) {
  if (/(y+)/.test(fmt)) {