Commit a9f90d68 authored by chenshouchao's avatar chenshouchao

cn-feat: 文件移动报错优化

parent b6f92ed7
......@@ -237,6 +237,8 @@ const MoveFile = (props: any) => {
console.log(error);
if (error?.response?.status === 405) {
Message.error("因目标路径存在同名文件,数据移动失败。");
} else {
Message.error("文件服务发生错误,数据移动失败。");
}
});
};
......@@ -262,6 +264,8 @@ const MoveFile = (props: any) => {
console.log(error);
if (error?.response?.status === 405) {
Message.error("因目标路径存在同名文件,数据移动失败。");
} else {
Message.error("文件服务发生错误,数据移动失败。");
}
});
};
......
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