chore: using includes instead of indexOf (#8261)
This commit is contained in:
@@ -121,7 +121,7 @@ export default createComponent({
|
||||
|
||||
const nodes = [];
|
||||
|
||||
if (TEXT_STATUS.indexOf(status) !== -1) {
|
||||
if (TEXT_STATUS.includes(status)) {
|
||||
nodes.push(<div class={bem('text')}>{getStatusText()}</div>);
|
||||
}
|
||||
if (status === 'loading') {
|
||||
|
||||
Reference in New Issue
Block a user