Commit 023fac05 authored by mengwenhao's avatar mengwenhao

fix:商品-时间选择器禁用时间包括今天

parent c2dd61e4
......@@ -1121,8 +1121,8 @@ export default {
// 禁用时间
disableExpirDate (time) {
const nowDate = new Date();
if (time > nowDate) {
const timeMs = time.getTime();
if (timeMs > (Date.now() - 86400000)) {
return false;
} else {
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment