fix the bug that the page cannot be loaded when clicking the date which is already chosen
This commit is contained in:
@@ -869,6 +869,10 @@ export default {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.query.dateType === recentDateRange.dateType && this.query.maxTime === recentDateRange.maxTime && this.query.minTime === recentDateRange.minTime) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.transactionsStore.updateTransactionListFilter({
|
this.transactionsStore.updateTransactionListFilter({
|
||||||
dateType: recentDateRange.dateType,
|
dateType: recentDateRange.dateType,
|
||||||
maxTime: recentDateRange.maxTime,
|
maxTime: recentDateRange.maxTime,
|
||||||
@@ -887,6 +891,11 @@ export default {
|
|||||||
|
|
||||||
const dateType = getDateTypeByDateRange(minTime, maxTime, this.firstDayOfWeek, datetimeConstants.allDateRangeScenes.Normal);
|
const dateType = getDateTypeByDateRange(minTime, maxTime, this.firstDayOfWeek, datetimeConstants.allDateRangeScenes.Normal);
|
||||||
|
|
||||||
|
if (this.query.dateType === dateType && this.query.maxTime === maxTime && this.query.minTime === minTime) {
|
||||||
|
this.showCustomDateRangeDialog = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.transactionsStore.updateTransactionListFilter({
|
this.transactionsStore.updateTransactionListFilter({
|
||||||
dateType: dateType,
|
dateType: dateType,
|
||||||
maxTime: maxTime,
|
maxTime: maxTime,
|
||||||
|
|||||||
Reference in New Issue
Block a user