Ver código fonte

🐛新增藏品上传附件错误问题

shaogen1995 2 anos atrás
pai
commit
2ad0283b67
1 arquivos alterados com 0 adições e 9 exclusões
  1. 0 9
      src/components/ObjectAdd/index.tsx

+ 0 - 9
src/components/ObjectAdd/index.tsx

@@ -190,8 +190,6 @@ function ObjectAdd({ id, colsePage, editId, dirCode }: Props) {
         complete: options7[0].name ? options7[0].name : null,
         dictCheckInScope: options9[0].name ? options9[0].name : null,
       });
-      // 清空附件仓库信息
-      dispatch({ type: "login/setFileData", payload: {} });
     }
   }, [
     dispatch,
@@ -212,13 +210,6 @@ function ObjectAdd({ id, colsePage, editId, dirCode }: Props) {
     setFileSelect(value);
   };
 
-  // 表格数据
-  // useEffect(() => {
-  //   dispatch({
-  //     type: "login/setFileData",
-  //     payload: {}});
-  // }, [dispatch]);
-
   const results = useSelector((state: RootState) => state.loginStore.fileData);
 
   // 点击表格里面的删除