types: optimize data types (#254)

This commit is contained in:
Fine0830
2023-04-06 21:50:57 +08:00
committed by GitHub
parent 8bb45bb453
commit 49a5481fb0
50 changed files with 263 additions and 213 deletions

View File

@@ -139,16 +139,16 @@ limitations under the License. -->
import LogTable from "@/views/dashboard/related/log/LogTable/Index.vue";
import type { SpanAttachedEvent } from "@/types/trace";
/*global defineProps, Nullable */
/*global defineProps, Nullable, Recordable */
const props = defineProps({
currentSpan: { type: Object as PropType<any>, default: () => ({}) },
currentSpan: { type: Object as PropType<Recordable>, default: () => ({}) },
});
const { t } = useI18n();
const traceStore = useTraceStore();
const pageNum = ref<number>(1);
const showRelatedLogs = ref<boolean>(false);
const showEventDetail = ref<boolean>(false);
const currentEvent = ref<any>({});
const currentEvent = ref<Recordable>({});
const pageSize = 10;
const total = computed(() =>
traceStore.traceList.length === pageSize ? pageSize * pageNum.value + 1 : pageSize * pageNum.value,