diff --git a/taoyao-client-web/src/components/Taoyao.js b/taoyao-client-web/src/components/Taoyao.js index 305518d..798fdd3 100644 --- a/taoyao-client-web/src/components/Taoyao.js +++ b/taoyao-client-web/src/components/Taoyao.js @@ -1256,7 +1256,10 @@ class Taoyao extends RemoteClient { const response = await this.request(protocol.buildMessage("client::list", { clientType })); - return response.body; + const { + body + } = response; + return body || []; } /** @@ -1312,7 +1315,10 @@ class Taoyao extends RemoteClient { const response = await this.request(protocol.buildMessage("client::status", { clientId })); - return response.body; + const { + body + } = response; + return body || {}; } /**