This commit is contained in:
archer 2025-12-24 13:30:24 +08:00
parent 5fd854af64
commit 7738b48fc9
No known key found for this signature in database
GPG Key ID: 4446499B846D4A9E
2 changed files with 4 additions and 4 deletions

View File

@ -226,7 +226,7 @@ export const updateParentFoldersUpdateTime = async ({
parentApp.updateTime = new Date();
await parentApp.save({ session });
// 递归删除
// 递归更新上层
parentId = parentApp.parentId;
}
};

View File

@ -190,20 +190,20 @@ const MobileDrawer = ({ onCloseDrawer, appId }: { onCloseDrawer: () => void; app
<Box px={3} overflow={'auto'} h={'100%'}>
{Array.isArray(myApps) &&
myApps.map((item) => (
<Flex justify={'center'} key={item._id}>
<Flex justify={'center'} key={item.appId}>
<Flex
py={2.5}
px={2}
width={'100%'}
borderRadius={'md'}
alignItems={'center'}
{...(item._id === appId
{...(item.appId === appId
? {
backgroundColor: 'primary.50 !important',
color: 'primary.600'
}
: {
onClick: () => onclickApp(item._id)
onClick: () => onclickApp(item.appId)
})}
>
<Avatar src={item.avatar} w={'24px'} borderRadius={'sm'} />