Commit b4a3f936cd19bf1fff3a331bacad60e79d2d6c22

Authored by 无木
1 parent 16c5d327

fix(table): global configuration accidentally modified

修复table的全局配置可能被意外修改的问题
CHANGELOG.zh_CN.md
... ... @@ -18,6 +18,7 @@
18 18 - **Menu** 修复路由映射模式下,单级菜单刷新不会激活
19 19 - 修复`ROLE`权限模式下`hasPermission`不工作的问题
20 20 - **Table** 修复启用`clickToRowSelect`时,点击行不会触发`selection-change`事件的问题
  21 +- **Table** 修复全局配置`fetchSetting`可能会被局部配置意外修改的问题
21 22  
22 23 ## 2.5.2(2021-06-27)
23 24  
... ...
src/components/Table/src/hooks/useDataSource.ts
... ... @@ -176,6 +176,7 @@ export function useDataSource(
176 176 try {
177 177 setLoading(true);
178 178 const { pageField, sizeField, listField, totalField } = Object.assign(
  179 + {},
179 180 FETCH_SETTING,
180 181 fetchSetting
181 182 );
... ...