mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
fix the changes are cleared after changing date range under "New Explorer"
This commit is contained in:
@@ -399,7 +399,7 @@ function init(initProps: InsightsExplorerProps): void {
|
|||||||
if (explorersStore.currentInsightsExplorer.id !== initProps.initId) {
|
if (explorersStore.currentInsightsExplorer.id !== initProps.initId) {
|
||||||
needReload = true;
|
needReload = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!initProps.initId && !initProps.initActiveTab && !initProps.initDateRangeType && !initProps.initStartTime && !initProps.initEndTime) { // first time open the page
|
||||||
explorersStore.updateCurrentInsightsExplorer(InsightsExplorer.createNewExplorer(generateRandomUUID()));
|
explorersStore.updateCurrentInsightsExplorer(InsightsExplorer.createNewExplorer(generateRandomUUID()));
|
||||||
isCurrentExplorerModified.value = true;
|
isCurrentExplorerModified.value = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user