瀏覽代碼

处理权限

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: '删除',