Skip to content

Commit 874734b

Browse files
committed
fix: use on-unmounted instead of on-before-unmount
1 parent 957d519 commit 874734b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chart.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
defineComponent,
44
h,
55
nextTick,
6-
onBeforeUnmount,
6+
onUnmounted,
77
onMounted,
88
ref,
99
shallowRef,
@@ -60,7 +60,7 @@ export const Chart = defineComponent({
6060

6161
onMounted(renderChart)
6262

63-
onBeforeUnmount(destroyChart)
63+
onUnmounted(destroyChart)
6464

6565
watch(
6666
[() => props.options, () => props.data],

0 commit comments

Comments
 (0)