fix: update config

This commit is contained in:
Qiuxia Fan
2022-01-12 18:47:04 +08:00
parent 5b95557905
commit a5f8cc2900
10 changed files with 31 additions and 40 deletions

View File

@@ -43,9 +43,6 @@ const props = defineProps({
});
onMounted(() => {
if (!chartRef.value) {
return;
}
setOptions(props.option);
addResizeListener(unref(chartRef), resize);
});
@@ -58,9 +55,6 @@ watch(
);
onBeforeUnmount(() => {
if (!chartRef.value) {
return;
}
removeResizeListener(unref(chartRef), resize);
});
</script>