Commit 50d6197a authored by 周宏民's avatar 周宏民

fix: rich

parent 9f5d6577
Pipeline #57678 failed with stages
in 4 seconds
......@@ -374,6 +374,7 @@ const RichText = forwardRef((props, ref) => {
const pattern =
/[`~!@#$^\-&*()+=|{}':;',\\\[\]\<>\/?~!@#¥……&*()——|{}【】';:""'。,、?\s]/g;
let name = file.name.replace(pattern, '');
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