@zgfe/modules-dm 1.0.56-zhongyuan.20 → 1.0.56-zhongyuan.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -69,6 +69,9 @@ var RightDetail = function RightDetail(props) {
|
|
|
69
69
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
70
70
|
isEdit = _useState12[0],
|
|
71
71
|
setIsEdit = _useState12[1];
|
|
72
|
+
useEffect(function () {
|
|
73
|
+
setIsEdit(false);
|
|
74
|
+
}, [currentTreeData]);
|
|
72
75
|
var beforeUpload = /*#__PURE__*/function () {
|
|
73
76
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
|
|
74
77
|
var isJpgOrPng, isLt10M;
|
|
@@ -113,10 +116,8 @@ var RightDetail = function RightDetail(props) {
|
|
|
113
116
|
};
|
|
114
117
|
var handleRemoveFile = function handleRemoveFile(file) {
|
|
115
118
|
console.log(file, imageUrl, 'kk');
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
});
|
|
119
|
-
setImageUrl(newArr);
|
|
119
|
+
// const newArr = imageUrl?.filter((o) => o.name != file.name);
|
|
120
|
+
setImageUrl([]);
|
|
120
121
|
setImagePath('');
|
|
121
122
|
};
|
|
122
123
|
var uploadImg = function uploadImg(file) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.56-zhongyuan.
|
|
3
|
+
"version": "1.0.56-zhongyuan.21",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "11cb3cdf6a37cbefb4f6e80c82598e68afbf223c",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|