|
@@ -268,13 +268,13 @@ export default {
|
|
|
return {
|
|
|
firstDayOfWeek: 1,
|
|
|
disabledDate(time) {
|
|
|
- if (that.formes.applyTime[1]) {
|
|
|
+ if (Array.isArray(that.formes.applyTime) && that.formes.applyTime[1]) {
|
|
|
return (
|
|
|
- time.getTime() + 86400000 <=
|
|
|
+ time.getTime() <=
|
|
|
new Date(that.formes.applyTime[1]).getTime()
|
|
|
);
|
|
|
} else {
|
|
|
- return time.getTime() + 86400000 <= new Date().getTime();
|
|
|
+ return time.getTime() <= new Date().getTime();
|
|
|
}
|
|
|
},
|
|
|
};
|