mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix: 选择时间起始不正确的问题
This commit is contained in:
parent
e2e7bc8d72
commit
4dfa1c8efc
@ -395,7 +395,7 @@ export default {
|
|||||||
|
|
||||||
async taskTimeChange(data) {
|
async taskTimeChange(data) {
|
||||||
const times = $A.newDateString(data.times, "YYYY-MM-DD HH:mm");
|
const times = $A.newDateString(data.times, "YYYY-MM-DD HH:mm");
|
||||||
if ($A.rightExists(times[0], '00:00') && $A.rightExists(times[1], '23:59')) {
|
if (/\s+(00:00|23:59)$/.test(times[0]) && /\s+(00:00|23:59)$/.test(times[1])) {
|
||||||
this.$set(data, 'times', await this.$store.dispatch("taskDefaultTime", times))
|
this.$set(data, 'times', await this.$store.dispatch("taskDefaultTime", times))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1205,7 +1205,7 @@ export default {
|
|||||||
|
|
||||||
async taskTimeChange() {
|
async taskTimeChange() {
|
||||||
const times = $A.newDateString(this.timeValue, "YYYY-MM-DD HH:mm");
|
const times = $A.newDateString(this.timeValue, "YYYY-MM-DD HH:mm");
|
||||||
if ($A.rightExists(times[0], '00:00') && $A.rightExists(times[1], '23:59')) {
|
if (/\s+(00:00|23:59)$/.test(times[0]) && /\s+(00:00|23:59)$/.test(times[1])) {
|
||||||
this.timeValue = await this.$store.dispatch("taskDefaultTime", times)
|
this.timeValue = await this.$store.dispatch("taskDefaultTime", times)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user