Skip to content

Commit 3c35602

Browse files
committed
fix: Folder sort by different workspace
1 parent 897f0de commit 3c35602

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/src/components/folder-tree/constant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export const SORT_MENU_CONFIG = [
2626
],
2727
},
2828
{
29-
items: [{ label: t('components.folder.sortDrop'), value: SORT_TYPES.CUSTOM }],
29+
items: [{ label: t('components.folder.custom'), value: SORT_TYPES.CUSTOM }],
3030
},
3131
]

ui/src/components/folder-tree/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ function openMoveToDialog(data: any) {
251251
MoveToDialogRef.value.open(obj, true)
252252
}
253253
254-
const CUSTOM_STORAGE_KEY = `${user.userInfo?.id}-${props.source}-folder-custom-positions`
255-
const FOLDER_SORT_TYPE = `${user.userInfo?.id}-${props.source}-folder-sort-type`
254+
const CUSTOM_STORAGE_KEY = `${user.userInfo?.id}-${user.getWorkspaceId()}-${props.source}-folder-custom-positions`
255+
const FOLDER_SORT_TYPE = `${user.userInfo?.id}-${user.getWorkspaceId()}-${props.source}-folder-sort-type`
256256
257257
const dataWithOrder = computed(() => {
258258
if (currentSort.value !== SORT_TYPES.CUSTOM || !props.data?.length) {

0 commit comments

Comments
 (0)