diff --git a/ui/src/components/ai-chat/index.vue b/ui/src/components/ai-chat/index.vue index f4215b4b9..6492de5ed 100644 --- a/ui/src/components/ai-chat/index.vue +++ b/ui/src/components/ai-chat/index.vue @@ -292,7 +292,7 @@ function getChartOpenId() { chatMessage() }) .catch((res) => { - if (res.response.status === 403) { + if (res.response.status === 401) { application.asyncAppAuthentication(accessToken).then(() => { getChartOpenId() })