From 246d1be89e93c16f9c8c8d5105ed6aa4a1821564 Mon Sep 17 00:00:00 2001 From: xachary <179740385@qq.com> Date: Tue, 20 Feb 2024 17:25:00 +0800 Subject: [PATCH] refactor(Exception): support original status values with not overrided (#3610) --- src/views/sys/exception/Exception.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/sys/exception/Exception.vue b/src/views/sys/exception/Exception.vue index 1a7fcd51b..38e0f49d2 100644 --- a/src/views/sys/exception/Exception.vue +++ b/src/views/sys/exception/Exception.vue @@ -122,7 +122,13 @@ {() => btnText} ), - icon: () => (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 ? : null) + : undefined, }} );