From fc0a72b07cb77c5107c7a30330395b09a70c6a25 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Fri, 19 Jul 2024 11:15:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=A9=BA=E9=A1=B9=E7=9B=AE=E7=BB=84=E7=BB=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1044212 --user=宋昌昌 【系统设置】组织下无项目-切换组织失败 https://www.tapd.cn/55049933/s/1550876 --- .../java/io/metersphere/system/service/UserLoginService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserLoginService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserLoginService.java index f04209c68c..ff5ae233ed 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserLoginService.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserLoginService.java @@ -246,6 +246,10 @@ public class UserLoginService { user.setLastProjectId(project.getId()); updateUser(user); return true; + } else { + // 组织下无项目, 走前端逻辑, 跳转到无项目的路由 + updateUser(user); + return true; } } }