From ba8d7b86812f013cd30ff138bdfd6530ad8068be Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Fri, 9 Jun 2023 14:33:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor(web):=20=E7=A7=BB=E9=99=A4=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E7=A6=BB=E7=BA=BF=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit amis API 无法响应访问失败的问题 --- web/index.html | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/web/index.html b/web/index.html index d3f04e1..e322d76 100644 --- a/web/index.html +++ b/web/index.html @@ -48,38 +48,7 @@ let amis = amisRequire('amis/embed') let amisJSON = { type: 'page', - title: { - type: 'service', - api: { - method: 'get', - url: '${base}/cloud/heart', - replaceData: true, - adaptor: function (payload, response) { - if (response.status !== 200) { - return { - ...payload, - data: { - status: false - } - } - } - return payload - } - }, - interval: 5000, - silentPolling: true, - body: [ - { - type: 'tpl', - tpl: "Hudi 服务总台", - }, - { - type: 'status', - className: 'ml-1', - value: '${status}', - } - ], - }, + title: 'Hudi 服务总台', subTitle: 'Hudi 全链路服务监控和控制台', body: { type: 'tabs',