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