sync: soul-admin 页面 | 原因: 前端页面修改
This commit is contained in:
@@ -147,11 +147,13 @@ export function CKBStatsTab() {
|
||||
}
|
||||
const elapsed = Math.round(performance.now() - start)
|
||||
const next = [...ckbTests]
|
||||
const ok = res?.success === true || res?.code === 200
|
||||
const msg = res?.message || ''
|
||||
const isExist = msg.includes('已存在') || msg.includes('已加入')
|
||||
const ok = res?.success === true || res?.code === 200 || isExist
|
||||
next[index] = {
|
||||
...test,
|
||||
status: ok ? 'success' : (res?.success === false ? 'error' : 'success'),
|
||||
message: res?.message || (ok ? '接口正常' : '返回异常'),
|
||||
status: ok ? 'success' : 'error',
|
||||
message: msg || (ok ? '接口正常' : '返回异常'),
|
||||
responseTime: elapsed,
|
||||
ckbResponse: res?.data ? JSON.stringify(res.data).slice(0, 100) : undefined,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user