|
|
@@ -647,6 +647,13 @@ export const SideBar = (props: { className?: string }) => {
|
|
|
}
|
|
|
const res = await api.get(url);
|
|
|
const list = res.data.map(((item: any) => {
|
|
|
+ if(item.sliceInfo){
|
|
|
+ let allChunkNum = 0;
|
|
|
+ item.sliceInfo.doc.forEach((doc: any) => {
|
|
|
+ allChunkNum += doc.chunk_nums;
|
|
|
+ });
|
|
|
+ item.sliceInfo.allChunkNum = allChunkNum;
|
|
|
+ }
|
|
|
return {
|
|
|
id: item.did,
|
|
|
role: item.type,
|