From e8d5b9ab1bccd92c0e6d2a59dda94f202a7166ed Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Thu, 20 Oct 2022 17:25:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96smart=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E6=95=B0=E6=8D=AE=E5=BA=93=E7=AB=AF=E5=8F=A3=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E5=A4=B1=E8=B4=A5=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/services/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/services/app.ts b/src/app/services/app.ts index a06b77c7..7ef7379f 100644 --- a/src/app/services/app.ts +++ b/src/app/services/app.ts @@ -337,6 +337,8 @@ export class AppService { } else { data['assetId'] = view.node.id; } - return this._http.getSmartEndpoint(data, protocol); + const res = this._http.getSmartEndpoint(data, protocol); + res.catch((err) => { alert(err.error.detail); }); + return res; } }