Commit ca93c8ce authored by wuyongsheng's avatar wuyongsheng

feat: 参数兼容处理

parent 8003468f
......@@ -81,7 +81,7 @@ type IDownloadDatasetItemsParams = {
path: string; // 数据集路径
name: string; // 数据集名称
id: string; // 每个分子的index,逗号分隔
downloadType: string; // 下载格式”,可选 SMILES(.smi)、SD(.sdf)、PDB(.pdb)、MOL(.mol)、MOL2(.mol2)
downloadType: string; // 下载格式”,可选 SMILES(.smi)、SD(.sdf)、PDB(.pdb)、MOL(.mol)、MOL2(.mol2)、PDBQT(.pdbqt)、'PDBQT(DOCKING POSES)'(.pdbqt)
}
class CloudEController {
......
......@@ -24,6 +24,8 @@ const flieTypeMap = {
PDB: ".pdb",
MOL: ".mol",
MOL2: ".mol2",
PDBQT: ".pdbqt",
'PDBQT(DOCKING POSES)': '.pdbqt'
};
const Download = (props: IDownloadProps) => {
......
......@@ -117,7 +117,7 @@ const SeeDataset = observer((props: ISeeDatasetProps) => {
index: sortState.field ? sortState.field : "",
sort: sortState.order ? sortState.order : "",
},
requestQuerylist
requestQuerylist || []
)
?.then((res) => {
setLoading(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment