feat: support multiple trees for the flame graph (#86)

This commit is contained in:
Fine0830
2022-05-12 20:57:37 +08:00
committed by GitHub
parent b492787027
commit 784c2e97b8
3 changed files with 56 additions and 17 deletions

View File

@@ -78,11 +78,12 @@ limitations under the License. -->
</div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
import { ref, watch } from "vue";
import { useI18n } from "vue-i18n";
import { useTraceStore } from "@/store/modules/trace";
import { useLogStore } from "@/store/modules/log";
import { ElMessage } from "element-plus";
import { useAppStoreWithOut } from "@/store/modules/app";
/*global Nullable, defineEmits, defineProps */
const emit = defineEmits(["update"]);
@@ -91,6 +92,7 @@ const props = defineProps({
});
const traceStore = useTraceStore();
const logStore = useLogStore();
const appStore = useAppStoreWithOut();
const { t } = useI18n();
const tags = ref<string>("");
const tagsList = ref<string[]>([]);
@@ -176,6 +178,12 @@ function showClick() {
dropdownTag.value.handleOpen();
}
}
watch(
() => appStore.durationTime,
() => {
fetchTagKeys();
}
);
</script>
<style lang="scss" scoped>
.trace-tags {