From 52c661b5d9e696cc907afd6eb87a6f0b1022f5e3 Mon Sep 17 00:00:00 2001 From: littlesparklet <112364429+littlesparklet@users.noreply.github.com> Date: Wed, 4 Dec 2024 09:19:24 +0800 Subject: [PATCH] Log in to the console through a browser http://ip:8848/nacos and be redirected to the login page without pop-ups. (related issue #11153) (#12907) * Remove excess code.(related issue #12871 ) * Log in to the console through a browser http://ip:8848/nacos and be redirected to the login page without pop-ups. (related issue #11153) --- .../ConfigurationManagement/ConfigurationManagement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js b/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js index 9b1dc2bbdd3..1c66076dbb7 100644 --- a/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js +++ b/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js @@ -331,7 +331,7 @@ class ConfigurationManagement extends React.Component { this.setState({ loading: false, }); - if (res && [401, 403].includes(res.status)) { + if (res && [401, 403].includes(res.status) && localStorage.token) { Dialog.alert({ title: locale.authFail, content: locale.getNamespace403.replace(