From c9cf4c1871c3149bed1af0a4a047b6b2fa892663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=85=9C=E5=9D=A4?= Date: Thu, 31 Oct 2024 17:35:15 +0800 Subject: [PATCH] [ISSUE #12017] Fix console state bugs (#12804) * Fix config clone bug * Fix state version bug --- .../ConfigurationManagement/ConfigurationManagement.js | 1 - console-ui/src/utils/request.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js b/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js index 3613ef770c8..564ed819034 100644 --- a/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js +++ b/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js @@ -735,7 +735,6 @@ class ConfigurationManagement extends React.Component { self.openLoading(); }, success(data) { - data = data.data; self.closeLoading(); if (!data || data.code !== 0 || !data.data) { Dialog.alert({ diff --git a/console-ui/src/utils/request.js b/console-ui/src/utils/request.js index e50383b30f6..ba31c409d46 100644 --- a/console-ui/src/utils/request.js +++ b/console-ui/src/utils/request.js @@ -74,7 +74,7 @@ const request = () => { // Message.error(resultMessage); // return Promise.reject(new Error(resultMessage)); // } - if (response.config && response.config.url === 'v1/console/server/state') { + if (response.config && response.config.url === 'v3/console/server/state') { const { auth_admin_request = '' } = response.data; if (auth_admin_request && auth_admin_request === 'true') { goRegister();