feat: add success and error status in Status component

1. add 'pass' key in successKeys
2. add 'refuse' key in errorKeys

Change-Id: I4e340785ef37c06b45342ac38ccdce560414623a
This commit is contained in:
zhangke 2022-11-18 17:50:49 +08:00
parent 47b3cead09
commit bd30f8c308

View File

@ -33,6 +33,7 @@ const successKeys = [
'complete', 'complete',
'online', 'online',
'ready', 'ready',
'pass',
]; ];
const successKeysContain = ['complete']; const successKeysContain = ['complete'];
@ -58,6 +59,7 @@ const errorKeys = [
'power off', 'power off',
'error', 'error',
'offline', 'offline',
'refuse',
]; ];
const errorKeysContain = ['fail']; const errorKeysContain = ['fail'];