Skip to content

Commit

Permalink
perf: 解构会导致响应式失效,直接返回
Browse files Browse the repository at this point in the history
  • Loading branch information
yc910920 committed Feb 24, 2022
1 parent ae12c6a commit b2a915d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/config-provider/useConfig.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-console */
import { computed, inject, Ref } from 'vue';
import defaultConfig from './zh_CN_config';

Expand Down Expand Up @@ -44,7 +43,7 @@ export default function useConfig<T>(componentName: string) {
const classPrefix = 't';
return {
t,
...global.value,
global,
classPrefix,
};
}

0 comments on commit b2a915d

Please sign in to comment.