fix: 解决合并会修改原属性的bug

This commit is contained in:
MTrun
2022-02-21 21:21:52 +08:00
parent d74fb21c9e
commit aa71bb545e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -22,5 +22,5 @@ export const mergeTheme = <T, U, E extends keyof U> (
themeSetting: U,
includes: E[] = []
) => {
return merge(pick(themeSetting, includes), option)
return merge({}, pick(themeSetting, includes), option)
}