src/utils/global.js
@@ -22,6 +22,13 @@ return option } // 时间处理函数 年月 export function handleDatetime4(value) { const data = new Date(value) const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1 return data.getFullYear() + '-' + month } // 时间处理函数 年月日 export function handleDatetime(value) { const data = new Date(value)