fix the bug that the selected date range in date selection dialog would not change to current set range after opening the date selection dialog in desktop version
This commit is contained in:
@@ -170,6 +170,18 @@ export default {
|
||||
return presetRanges;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
'minTime': function (newValue) {
|
||||
if (newValue) {
|
||||
this.dateRange[0] = getLocalDatetimeFromUnixTime(getDummyUnixTimeForLocalUsage(newValue, getTimezoneOffsetMinutes(), getBrowserTimezoneOffsetMinutes()));
|
||||
}
|
||||
},
|
||||
'maxTime': function (newValue) {
|
||||
if (newValue) {
|
||||
this.dateRange[1] = getLocalDatetimeFromUnixTime(getDummyUnixTimeForLocalUsage(newValue, getTimezoneOffsetMinutes(), getBrowserTimezoneOffsetMinutes()));
|
||||
}
|
||||
}
|
||||
},
|
||||
setup() {
|
||||
const theme = useTheme();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user