refactor(web): 移除在线离线检测
amis API 无法响应访问失败的问题
This commit is contained in:
@@ -48,38 +48,7 @@
|
|||||||
let amis = amisRequire('amis/embed')
|
let amis = amisRequire('amis/embed')
|
||||||
let amisJSON = {
|
let amisJSON = {
|
||||||
type: 'page',
|
type: 'page',
|
||||||
title: {
|
title: 'Hudi 服务总台',
|
||||||
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}',
|
|
||||||
}
|
|
||||||
],
|
|
||||||
},
|
|
||||||
subTitle: 'Hudi 全链路服务监控和控制台',
|
subTitle: 'Hudi 全链路服务监控和控制台',
|
||||||
body: {
|
body: {
|
||||||
type: 'tabs',
|
type: 'tabs',
|
||||||
|
|||||||
Reference in New Issue
Block a user