peng
2025-10-27 e7359a485b90b19d8bc751ba5572b76e9b474cb2
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)) {