This commit is contained in:
Qiuxia Fan 2022-06-01 15:39:28 +08:00
parent 97da665904
commit 78bd81ea5d

View File

@ -79,7 +79,11 @@ export function useECharts(
if (!el || !unref(el)) {
return;
}
const { width, height } = el.getBoundingClientRect();
if (!width || !height) {
return;
}
chartInstance = echarts.init(el, t);
const { removeEvent } = useEventListener({
el: window,