Issue #128: Done.

This commit is contained in:
chiayin
2023-09-19 13:57:30 +08:00
parent 9d43e1178f
commit 1d20c53f05
2 changed files with 3 additions and 0 deletions

View File

@@ -814,6 +814,7 @@ export default {
default: default:
break; break;
}; };
if(data.min > data.max) return this.$toast.error('Please check time range setting.');
if(JSON.stringify(data) === JSON.stringify(this.isSubmitData)) return this.$toast.error('Please set the new rule.'); if(JSON.stringify(data) === JSON.stringify(this.isSubmitData)) return this.$toast.error('Please set the new rule.');
this.isLoading = true; this.isLoading = true;

View File

@@ -41,6 +41,8 @@ export default {
min: newValue.min, min: newValue.min,
max: newValue.max max: newValue.max
}; };
this.$emit('min-total-seconds', newValue.min);
this.$emit('max-total-seconds', newValue.max);
} }
this.setTimeValue(); this.setTimeValue();
}, },