Skip to content

Commit

Permalink
bugfix: Agent管理 - 数据压缩属性未正确展示 (closed #1771) (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
GONGONGONG authored Aug 24, 2023
1 parent 2a0473d commit 6192e9f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions frontend/src/store/modules/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,18 @@ export default class AgentStore extends VuexModule {
const {
bt_speed_limit: btSpeedLimit,
peer_exchange_switch_for_agent: peerExchangeSwitchForAgent = 1,
...extraOther
} = item.extra_data || {};
item.status = item.status ? item.status.toLowerCase() : 'unknown';
item.version = item.version ? item.version : '--';
item.job_result = item.job_result ? item.job_result : {} as any;
item.topology = item.topology && item.topology.length ? item.topology : [];
item.bt_speed_limit = btSpeedLimit || '';
item.peer_exchange_switch_for_agent = !!peerExchangeSwitchForAgent || false;
return item;
return {
...extraOther,
...item,
status: item.status ? item.status.toLowerCase() : 'unknown',
version: item.version ? item.version : '--',
job_result: item.job_result ? item.job_result : {} as any,
topology: item.topology && item.topology.length ? item.topology : [],
bt_speed_limit: btSpeedLimit || '',
peer_exchange_switch_for_agent: !!peerExchangeSwitchForAgent || false,
};
});
return data;
}
Expand Down

0 comments on commit 6192e9f

Please sign in to comment.