@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
- var newArr = imageUrl === null || imageUrl === void 0 ? void 0 : imageUrl.filter(function (o) {
117
- return o.name != file.name;
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.20",
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": "62fddc636e743e74038d53e3571fcb3564231d9f",
60
+ "gitHead": "11cb3cdf6a37cbefb4f6e80c82598e68afbf223c",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }