Skip to content

Commit

Permalink
修复lint推荐格式
Browse files Browse the repository at this point in the history
  • Loading branch information
Rococoscarlet committed Dec 3, 2024
1 parent e4c3506 commit a037253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config-provider/useConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function useConfig<T extends keyof GlobalConfigProvider>(
*/
export const provideConfig = (props: ConfigProviderProps) => {
const defaultData = cloneDeep(defaultGlobalConfig);
const mergedGlobalConfig = computed(() => Object.assign({}, mergeWith(defaultData, props.globalConfig)));
const mergedGlobalConfig = computed(() => ({...mergeWith(defaultData, props.globalConfig)}));

Check failure on line 72 in src/config-provider/useConfig.ts

View workflow job for this annotation

GitHub Actions / call-test-build / test

Replace `...mergeWith(defaultData,·props.globalConfig)` with `·...mergeWith(defaultData,·props.globalConfig)·`

provide(configProviderInjectKey, mergedGlobalConfig);

Expand Down

0 comments on commit a037253

Please sign in to comment.