fix: reset tag keys list and duration condition (#178)

This commit is contained in:
Fine0830 2022-10-31 12:05:25 +08:00 committed by GitHub
parent 09051e916b
commit 4b88d8bbb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ function selectTag(item: string) {
function searchTags() { function searchTags() {
if (!tags.value) { if (!tags.value) {
tagList.value = tagArr.value; tagList.value = tagArr.value;
fetchTagKeys();
return; return;
} }
let search = ""; let search = "";

View File

@ -141,6 +141,7 @@ if (props.needQuery) {
} }
async function init() { async function init() {
duration.value = filters.duration || appStore.durationTime;
if (dashboardStore.entity === EntityType[1].value) { if (dashboardStore.entity === EntityType[1].value) {
await getServices(); await getServices();
} }