From bd332b9a03aef5d1304267a6be50561d8a6f6943 Mon Sep 17 00:00:00 2001
From: suerprisePlus <15810472099@163.com>
Date: 星期五, 29 十一月 2024 09:40:22 +0800
Subject: [PATCH] 前端跳转地址优化

---
 se-ui/src/layout/components/Navbar.vue |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/se-ui/src/layout/components/Navbar.vue b/se-ui/src/layout/components/Navbar.vue
index acc5355..5cb7bc6 100644
--- a/se-ui/src/layout/components/Navbar.vue
+++ b/se-ui/src/layout/components/Navbar.vue
@@ -105,7 +105,7 @@
           this.$store.dispatch("LogOut").then(() => {
               console.log(process.env.NODE_ENV);
             if (process.env.NODE_ENV == "development") {
-              window.location.href = "http://localhost:8080/login";
+              window.location.href =  window.location.origin + "/login";
             } else if (process.env.NODE_ENV == "production") {
               window.location.href = window.location.origin + "/sso/login";
             }

--
Gitblit v1.9.3