From 67ec8b79ef53e4fa0e33b963023c98f1ce8e236b Mon Sep 17 00:00:00 2001 From: lysign Date: Thu, 29 Sep 2022 14:16:01 +0800 Subject: [PATCH] fix: the interface does not prompt information when deleting a cluster with backup (#184) Signed-off-by: liuying Signed-off-by: liuying --- src/components/Tables/Base/ActionButton/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Tables/Base/ActionButton/index.jsx b/src/components/Tables/Base/ActionButton/index.jsx index 4f0672d6..58f3ab7b 100644 --- a/src/components/Tables/Base/ActionButton/index.jsx +++ b/src/components/Tables/Base/ActionButton/index.jsx @@ -143,7 +143,8 @@ function onShowError(action, data, error, props) { } const { submitErrorMsg } = action; const { data: responseData } = (error || {}).response || error || {}; - const realError = responseData || error; + const realError = + responseData?.reason || responseData?.message || responseData || error; const message = submitErrorMsg ? submitErrorMsg(data, realError) : getDefaultMsg(action, data).submitErrorMsg;