src/utils/time-util.js @@ -13,6 +13,14 @@ } }, formatYM(date){ if (date) { return this.format(date, 'YYYY-MM') } else { return '----/--' } }, formatYMD(date){ if (date) { return this.format(date, 'YYYY-MM-DD')