We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58db4ed commit 178064fCopy full SHA for 178064f
ui/src/stores/modules/user.ts
@@ -103,6 +103,9 @@ const useUserStore = defineStore('user', {
103
})
104
.filter((id) => id !== null); // 过滤掉无效的ID
105
if (workspaceManagePermissions && workspaceManagePermissions.length > 0) {
106
+ if (workspaceManagePermissions.includes(localStorage.getItem('workspace_id') || 'default')) {
107
+ return
108
+ }
109
this.setWorkspaceId(workspaceManagePermissions[0])
110
}
111
},
0 commit comments