소스 검색

处理权限

sunsheng 2 달 전
부모
커밋
7f7fc4eaaf
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/pages/deepseek/knowledgeLib/slice/index.tsx

+ 2 - 2
src/pages/deepseek/knowledgeLib/slice/index.tsx

@@ -243,7 +243,7 @@ const SliceList: React.FC = () => {
 
                                                 <div style={{ overflow: 'auto' }}>
                                                     {
-                                                        (updateFlag||userInfoAll.id===item.createBy) &&
+                                                        (updateFlag||userInfoAll.id===location?.state.createBy) &&
                                                         <a
                                                             style={{ marginRight: 20 }}
                                                             onClick={() => {
@@ -261,7 +261,7 @@ const SliceList: React.FC = () => {
                                                     }
 
                                                     {
-                                                        (deleteFlag||userInfoAll.id===item.createBy) &&
+                                                        (deleteFlag||userInfoAll.id===location?.state.createBy) &&
                                                         <a className='text-error' onClick={() => {
                                                             Modal.confirm({
                                                                 title: '删除',