@zgfe/modules-dm 1.0.56-zhongyuan.22 → 1.0.56-zhongyuan.23

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.
@@ -103,6 +103,11 @@ var RightDetail = function RightDetail(props) {
103
103
  }();
104
104
  var handleChange = function handleChange(info) {
105
105
  var _info$fileList;
106
+ if (info.file.status === 'removed') {
107
+ setImageUrl([]);
108
+ setImagePath('');
109
+ return;
110
+ }
106
111
  info.fileList && setImageUrl([_objectSpread(_objectSpread({}, (_info$fileList = info.fileList) === null || _info$fileList === void 0 ? void 0 : _info$fileList[0]), {}, {
107
112
  status: 'done'
108
113
  })]);
@@ -110,12 +115,12 @@ var RightDetail = function RightDetail(props) {
110
115
  setLoading(true);
111
116
  return;
112
117
  }
113
- if (info.file.status === 'done') {
114
- // Get this url from response in real world.
115
- getBase64(info.file.originFileObj, function (url) {
116
- setLoading(false);
117
- });
118
- }
118
+ // if (info.file.status === 'done') {
119
+ // Get this url from response in real world.
120
+ getBase64(info.file.originFileObj, function (url) {
121
+ setLoading(false);
122
+ });
123
+ // }
119
124
  };
120
125
  var handleRemoveFile = function handleRemoveFile(file) {
121
126
  // const newArr = imageUrl?.filter((o) => o.name != file.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.56-zhongyuan.22",
3
+ "version": "1.0.56-zhongyuan.23",
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": "9202d80b68f891c992848a8fe1dbb7d5827b47ae",
60
+ "gitHead": "2d032212777acf8610651a5bb151075b36fec1cf",
61
61
  "gitHooks": {
62
62
  "pre-commit": "lint-staged"
63
63
  }