fix: update

This commit is contained in:
Fine 2023-03-29 12:32:35 +08:00
parent 1f3436ea97
commit a290344866

View File

@ -55,7 +55,13 @@ limitations under the License. -->
const { t } = useI18n(); const { t } = useI18n();
const profileStore = useProfileStore(); const profileStore = useProfileStore();
const key = computed(() => (profileStore.currentSpan && profileStore.currentSpan.segmentId) || ""); const key = computed(
() =>
(profileStore.currentSegment &&
profileStore.currentSegment.spans.length &&
profileStore.currentSegment.spans[0].segmentId) ||
"",
);
async function selectSegment(item: Trace) { async function selectSegment(item: Trace) {
profileStore.setCurrentSegment(item); profileStore.setCurrentSegment(item);