diff --git a/packages/applet/src/components/timeline/index.vue b/packages/applet/src/components/timeline/index.vue index 7d9889f2..09f30b29 100644 --- a/packages/applet/src/components/timeline/index.vue +++ b/packages/applet/src/components/timeline/index.vue @@ -95,6 +95,13 @@ rpc.functions.on(DevToolsMessagingEvents.TIMELINE_EVENT_UPDATED, onTimelineEvent onUnmounted(() => { rpc.functions.off(DevToolsMessagingEvents.TIMELINE_EVENT_UPDATED, onTimelineEventUpdated) }) + +defineExpose({ + clear() { + eventList.value = [] + groupList.value.clear() + }, +})