mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 02:00:25 +08:00
refactor(Exception): support original status values with not overrided (#3610)
This commit is contained in:
parent
b233973974
commit
246d1be89e
@ -122,7 +122,13 @@
|
|||||||
{() => btnText}
|
{() => btnText}
|
||||||
</Button>
|
</Button>
|
||||||
),
|
),
|
||||||
icon: () => (icon ? <img src={icon} /> : null),
|
// antv 原来支持 status 可选: success | error | info | warning | 404 | 403 | 500
|
||||||
|
// 上面 ExceptionEnum 覆盖了 404 | 403 | 500,并增加其他状态值
|
||||||
|
// 增加下面判断,继续支持 success | error | info | warning
|
||||||
|
icon:
|
||||||
|
status && ExceptionEnum[status] === void 0
|
||||||
|
? () => (icon ? <img src={icon} /> : null)
|
||||||
|
: undefined,
|
||||||
}}
|
}}
|
||||||
</Result>
|
</Result>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user