Commit 80b59bb5 authored by 周宏民's avatar 周宏民

fix: rich

parent 8362954b
Pipeline #57701 failed with stages
in 4 seconds
......@@ -306,6 +306,12 @@
"webpack": false,
"running": false
},
{
"path": "packages/base-components/RichText/lib/**/*.js",
"limit": "2 s",
"webpack": false,
"running": false
},
{
"path": "packages/base-components/RichText/es/**/*.js",
"limit": "2 s",
......
......@@ -9,12 +9,14 @@
"*.less"
],
"module": "es/index.js",
"main": "es/index.js",
"main": "lib/index.js",
"files": [
"lib",
"es",
"dist"
],
"directories": {
"lib": "lib",
"es": "es",
"dist": "dist",
"test": "__tests__"
......
......@@ -374,8 +374,6 @@ 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