Commit 9207e2f8 by zhaochengxiang

资产bug

parent 994d34e6
......@@ -561,7 +561,8 @@ const AssetTable = (props) => {
// }
const deleteAssets = () => {
if ((checkedKeys||[]).length > 0) {
if ((checkedKeys||[]).length === 0) return;
if (reference === AssetManageReference) {
setAssetDeleteModalVisible(true);
} else {
......@@ -587,9 +588,6 @@ const AssetTable = (props) => {
}
})
}
}else{
showMessage("warn","请先选择资产")
}
}
const onImportAssetCancel = () => {
......@@ -614,6 +612,7 @@ const AssetTable = (props) => {
}
const onBatchCatalogChangeBtnClick = () => {
if ((checkedKeys||[]).length===0) return;
setBatchCatalogChange(true);
setAssetMountVisible(true);
}
......
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