fix: reset duration for query conditions after time range changes (#226)

This commit is contained in:
Fine0830 2023-02-08 12:08:45 +08:00 committed by GitHub
parent c73322a504
commit d93ed2c5d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -343,6 +343,7 @@ limitations under the License. -->
watch(
() => appStore.durationTime,
() => {
duration.value = appStore.durationTime;
if (dashboardStore.entity === EntityType[1].value) {
init();
}

View File

@ -270,6 +270,7 @@ limitations under the License. -->
watch(
() => appStore.durationTime,
() => {
duration.value = appStore.durationTime;
if (dashboardStore.entity === EntityType[1].value) {
init();
}