提交 b4a3f936 编写于 作者: 无木

fix(table): global configuration accidentally modified

修复table的全局配置可能被意外修改的问题
上级 16c5d327
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
- **Menu** 修复路由映射模式下,单级菜单刷新不会激活 - **Menu** 修复路由映射模式下,单级菜单刷新不会激活
- 修复`ROLE`权限模式下`hasPermission`不工作的问题 - 修复`ROLE`权限模式下`hasPermission`不工作的问题
- **Table** 修复启用`clickToRowSelect`时,点击行不会触发`selection-change`事件的问题 - **Table** 修复启用`clickToRowSelect`时,点击行不会触发`selection-change`事件的问题
- **Table** 修复全局配置`fetchSetting`可能会被局部配置意外修改的问题
## 2.5.2(2021-06-27) ## 2.5.2(2021-06-27)
......
...@@ -176,6 +176,7 @@ export function useDataSource( ...@@ -176,6 +176,7 @@ export function useDataSource(
try { try {
setLoading(true); setLoading(true);
const { pageField, sizeField, listField, totalField } = Object.assign( const { pageField, sizeField, listField, totalField } = Object.assign(
{},
FETCH_SETTING, FETCH_SETTING,
fetchSetting fetchSetting
); );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册