Skip to content

Commit d369d89

Browse files
committed
fix error, use CustomEventInit
1 parent 834d075 commit d369d89

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web_src/js/components/ContextPopup.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ const body = computed(() => {
2525
const root = ref<HTMLElement | null>(null);
2626
2727
onMounted(() => {
28-
root.value.addEventListener('ce-load-context-popup', (e: CustomEvent) => {
29-
const data: IssuePathInfo = e.detail;
28+
root.value.addEventListener('ce-load-context-popup', (e: CustomEventInit<IssuePathInfo>) => {
3029
if (!loading.value && issue.value === null) {
31-
load(data);
30+
load(e.detail);
3231
}
3332
});
3433
});

0 commit comments

Comments
 (0)