fix: cron生成器星期生成出错

This commit is contained in:
chenjianxing 2021-04-28 21:37:19 +08:00 committed by jianxing
parent 4b8154c859
commit a80786672b
2 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,7 @@
//
let thisWeek = this.formatDate(new Date(YY + '-' + MM + '-' + DD + ' 00:00:00'), 'week');
//dayRuleSup
if (Array.indexOf(this.dayRuleSup, thisWeek) < 0) {
if (this.dayRuleSup.indexOf(thisWeek) < 0) {
//
if (Di == DDate.length - 1) {
resetDay();

View File

@ -78,6 +78,9 @@ export default {
this.$emit('update', 'week', '*');
this.$emit('update', 'year', '*');
} else {
if (this.radioValue !== 2) {
this.$emit('update', 'day', '?', 'week');
}
if (this.cron.mouth === '*') {
this.$emit('update', 'mouth', '1', 'week');
}