Commit 54fb5db0 authored by 周宏民's avatar 周宏民

fix: rich

parent 256a7bd0
Pipeline #57691 failed with stages
in 4 seconds
......@@ -374,7 +374,8 @@ const RichText = forwardRef((props, ref) => {
const pattern =
/[`~!@#$^\-&*()+=|{}':;',\\\[\]\<>\/?~!@#¥……&*()——|{}【】';:""'。,、?\s]/g;
let name = file.name.replace(pattern, '');
console.log('🚀 ~ name', name);
console.log('name', name);
const renameFile = new File([file], name);
const formData = new FormData();
formData.append('file', renameFile);
......
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