mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix: ts
This commit is contained in:
parent
5fd854af64
commit
7738b48fc9
|
|
@ -226,7 +226,7 @@ export const updateParentFoldersUpdateTime = async ({
|
|||
parentApp.updateTime = new Date();
|
||||
await parentApp.save({ session });
|
||||
|
||||
// 递归删除
|
||||
// 递归更新上层
|
||||
parentId = parentApp.parentId;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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'} />
|
||||
|
|
|
|||
Loading…
Reference in New Issue