mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-28 23:48:21 +08:00
fix: provided theme changing won't trigger effect
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user