购物车历史订单增加,代码优化
This commit is contained in:
@@ -27,4 +27,11 @@ export function getThisMonthTimestamps() {
|
||||
const end = dayjs().endOf('month').format('YYYY-MM-DD HH:mm:ss');
|
||||
return { start, end ,label:'本月'};
|
||||
}
|
||||
|
||||
|
||||
// 获取上个月的开始和结束时间
|
||||
export function getThisLastMonthTimestamps() {
|
||||
const start = dayjs().subtract(1, 'month').startOf('month').format('YYYY-MM-DD HH:mm:ss');
|
||||
const end = dayjs().subtract(1, 'month').endOf('month').format('YYYY-MM-DD HH:mm:ss');
|
||||
return { start, end ,label:'上月'};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user