From 19ce2167301af4cb8ea15a8ba97950f440f42cd8 Mon Sep 17 00:00:00 2001 From: elicos <14487015+richipoint@user.noreply.gitee.com> Date: Tue, 3 Dec 2024 18:26:35 +0800 Subject: [PATCH] fix(config-provider): computed globalConfig reactivity --- src/config-provider/useConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config-provider/useConfig.ts b/src/config-provider/useConfig.ts index ad76f697f..f682eb717 100644 --- a/src/config-provider/useConfig.ts +++ b/src/config-provider/useConfig.ts @@ -69,7 +69,7 @@ export function useConfig( */ export const provideConfig = (props: ConfigProviderProps) => { const defaultData = cloneDeep(defaultGlobalConfig); - const mergedGlobalConfig = computed(() => mergeWith(defaultData, props.globalConfig)); + const mergedGlobalConfig = computed(() => ({ ...mergeWith(defaultData, props.globalConfig) })); provide(configProviderInjectKey, mergedGlobalConfig);