eladmin-web-master/src/components/Crud/crud.js
@@ -531,6 +531,19 @@ }) }, /** * 年份格式化 * @param {Object} timestamp 时间戳 */ toYear(timestamp) { if (timestamp == null) { return } else { const system = new Date(timestamp) const year = system.getFullYear() return year } }, /** * 年月格式化 * @param {Object} timestamp 时间戳 */