From f467003e39c5043949bdbcec4a339b17ccbb6d07 Mon Sep 17 00:00:00 2001 From: maslow Date: Mon, 13 Sep 2021 22:33:32 +0800 Subject: [PATCH] fix(system-client): fix debug function result output; --- packages/system-client/src/views/cloudfunction/debug.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/system-client/src/views/cloudfunction/debug.vue b/packages/system-client/src/views/cloudfunction/debug.vue index a7839346c5..4e974d5086 100644 --- a/packages/system-client/src/views/cloudfunction/debug.vue +++ b/packages/system-client/src/views/cloudfunction/debug.vue @@ -230,7 +230,7 @@ export default { const res = await launchFunction(this.func.name, param, debug_token) .finally(() => { this.loading = false }) - this.invokeRequestId = res.headers['requestId'] + this.invokeRequestId = res.headers['requestid'] await this.getLogByRequestId(this.invokeRequestId) .finally(() => { this.loading = false }) @@ -245,7 +245,7 @@ export default { if (res.data?.length) { this.invokeLogs = res.data[0]?.logs - this.invokeTimeUsage = this.invokeLogs?.time_usage + this.invokeTimeUsage = res.data[0]?.time_usage } }, /**