File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ui/src/views/system/resource-authorization Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ const settingTags = reactive([
199199// 当前激活的数据类型(应用/知识库/模型/工具)
200200
201201const activeData = computed (() => {
202- var lastIndex = route .path .lastIndexOf (' /' )
202+ const lastIndex = route .path .lastIndexOf (' /' )
203203 const currentPathType = route .path .substring (lastIndex + 1 ).toUpperCase ()
204204 return settingTags .filter ((item ) => {
205205 return item .type === currentPathType
@@ -430,7 +430,7 @@ const currentWorkspace = computed(() => {
430430async function getWorkspaceList() {
431431 const res = await loadPermissionApi (' workspace' ).getSystemWorkspaceList (loading )
432432 workspaceList .value = res .data
433- currentWorkspaceId .value = ' default'
433+ currentWorkspaceId .value = user . getWorkspaceId () as string || ' default'
434434}
435435
436436function changeWorkspace(item : WorkspaceItem ) {
You can’t perform that action at this time.
0 commit comments