diff --git a/src/hooks/useTableQuery.js b/src/hooks/useTableQuery.js index 64c8424..e26a5a6 100644 --- a/src/hooks/useTableQuery.js +++ b/src/hooks/useTableQuery.js @@ -12,6 +12,7 @@ function useTableQuery({ parameter, api, callback, + uuid = false, immediate = true, watchParameter = false, }) { @@ -56,12 +57,14 @@ function useTableQuery({ vo.page = _vo.page; vo.total = _vo.total; vo.rows = [...vo.rows, ..._vo.rows]; - vo.rows = Array.from( - vo.rows.reduce((map, item) => { - map.set(item.id, item); - return map; - }, new Map()).values() - ) + if (uuid) { + vo.rows = Array.from( + vo.rows.reduce((map, item) => { + map.set(item.id, item); + return map; + }, new Map()).values() + ) + } callback && callback(vo); } finally { diff --git a/src/pages/taskDetails/components/ReviewCommunication.vue b/src/pages/taskDetails/components/ReviewCommunication.vue index 4fce7c9..d935fe7 100644 --- a/src/pages/taskDetails/components/ReviewCommunication.vue +++ b/src/pages/taskDetails/components/ReviewCommunication.vue @@ -25,6 +25,7 @@ const vo = reactive({ const {loading, pagination, initFetchData, fetchData} = useTableQuery({ api: Api.system.getExchangeLog, + uuid: true, parameter: po, callback: (data) => { console.log(data);