From 87d9f843ac178b63abeb350042c89865da006a25 Mon Sep 17 00:00:00 2001 From: YunfeiHe Date: Sat, 1 May 2021 00:49:29 +0800 Subject: [PATCH] fix: provided theme changing won't trigger effect --- src/ECharts.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ECharts.ts b/src/ECharts.ts index 93511bb..62828bd 100644 --- a/src/ECharts.ts +++ b/src/ECharts.ts @@ -94,7 +94,6 @@ export default defineComponent({ const { autoresize, manualUpdate, loading } = toRefs(props); - const theme = toRef(props, "theme"); const initOptions = toRef(props, "initOptions"); const loadingOptions = toRef(props, "loadingOptions"); @@ -218,7 +217,7 @@ export default defineComponent({ ); watch( - [theme, initOptions], + [realTheme, initOptions], () => { cleanup(); init();