diff --git a/backend/src/main/java/io/dataease/plugins/server/XDingtalkServer.java b/backend/src/main/java/io/dataease/plugins/server/XDingtalkServer.java
index 8ef0b84ecb..3105858c62 100644
--- a/backend/src/main/java/io/dataease/plugins/server/XDingtalkServer.java
+++ b/backend/src/main/java/io/dataease/plugins/server/XDingtalkServer.java
@@ -115,6 +115,11 @@ public class XDingtalkServer {
DeLogUtils.save(SysLogConstants.OPERATE_TYPE.LOGIN, SysLogConstants.SOURCE_TYPE.USER, sysUserEntity.getUserId(), null, null, null);
Cookie cookie_token = new Cookie("Authorization", token);
+ if (withoutLogin) {
+ Cookie platformCookie = new Cookie("inOtherPlatform", "true");
+ platformCookie.setPath("/");
+ response.addCookie(platformCookie);
+ }
cookie_token.setPath("/");
response.addCookie(cookie_token);
diff --git a/backend/src/main/java/io/dataease/plugins/server/XLarkServer.java b/backend/src/main/java/io/dataease/plugins/server/XLarkServer.java
index 9233abde28..9651776b56 100644
--- a/backend/src/main/java/io/dataease/plugins/server/XLarkServer.java
+++ b/backend/src/main/java/io/dataease/plugins/server/XLarkServer.java
@@ -141,6 +141,11 @@ public class XLarkServer {
cookie_token.setPath("/");
response.addCookie(cookie_token);
+ if (withoutLogin) {
+ Cookie platformCookie = new Cookie("inOtherPlatform", "true");
+ platformCookie.setPath("/");
+ response.addCookie(platformCookie);
+ }
} catch (Exception e) {
String msg = e.getMessage();
diff --git a/frontend/src/layout/components/Topbar.vue b/frontend/src/layout/components/Topbar.vue
index 4923c01a43..0eca5b451d 100644
--- a/frontend/src/layout/components/Topbar.vue
+++ b/frontend/src/layout/components/Topbar.vue
@@ -85,7 +85,10 @@
{{ $t('commons.ukey_title') }}
-
+
{{ $t('user.change_password') }}
@@ -93,6 +96,7 @@
{{ $t('commons.about_us') }}
@@ -132,8 +136,7 @@ import { getSysUI } from '@/utils/auth'
import { pluginLoaded } from '@/api/user'
import { initTheme } from '@/utils/ThemeUtil'
import TemplateMarket from '@/views/panel/templateMarket'
-import { changeFavicon } from '@/utils/index'
-
+import { changeFavicon, inOtherPlatform } from '@/utils/index'
export default {
name: 'Topbar',
components: {
@@ -225,6 +228,9 @@ export default {
sidebar() {
return this.$store.state.app.sidebar
},
+ isOtherPlatform() {
+ return inOtherPlatform()
+ },
...mapGetters([
'avatar',
'permission_routes',
diff --git a/frontend/src/utils/index.js b/frontend/src/utils/index.js
index 01dd7eb895..cc19716828 100644
--- a/frontend/src/utils/index.js
+++ b/frontend/src/utils/index.js
@@ -344,3 +344,11 @@ export const mergeCustomSortOption = (customSortList, sourceList) => {
const result = [...customSortList, ...sourceList]
return [...new Set(result)]
}
+
+export const inOtherPlatform = () => {
+ const cookieStr = Cookies.get('inOtherPlatform')
+ if (cookieStr && cookieStr === 'true') {
+ return true
+ }
+ return false
+}