mirror of
https://github.com/rustfs/console.git
synced 2026-09-19 01:47:44 +08:00
fix : bucket can not be delete if not empty . rustfs/s3-rustfs#281
This commit is contained in:
@@ -157,8 +157,9 @@ const deleteItem = async (row: RowData) => {
|
||||
const objectApi = useObject({ bucket: row.Name});
|
||||
|
||||
const files = await objectApi.listObject(row.Name);
|
||||
console.log("🚀 ~ deleteItem ~ files:", files)
|
||||
|
||||
if(files.KeyCount){
|
||||
if(files.KeyCount || files.CommonPrefixes?.length){
|
||||
message.error("当前桶不为空,请先删除桶内容")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user