gxxc-ui 1.0.44 → 1.0.46
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.
- package/dist/UploadUI/index.js +3 -1
- package/package.json +1 -1
package/dist/UploadUI/index.js
CHANGED
|
@@ -179,10 +179,11 @@ var UploadUI = function UploadUI(props) {
|
|
|
179
179
|
res = _context.sent;
|
|
180
180
|
if (res.status == 200) {
|
|
181
181
|
_res$data = res.data, code = _res$data.code, body = _res$data.body, msg = _res$data.msg;
|
|
182
|
-
item.status = '';
|
|
183
182
|
if (code === '0') {
|
|
184
183
|
item.url = body.url;
|
|
185
184
|
item.md5 = body.md5;
|
|
185
|
+
item.percent = 0; // 把进度设置为0 不然加载url中 会显示出默认进度UI
|
|
186
|
+
item.status = 'done';
|
|
186
187
|
/// 如果是 h264 编码 显示第一帧
|
|
187
188
|
if (file_url_is_video_H264(item.url)) {
|
|
188
189
|
item.thumbUrl = "".concat(item.url, "?x-oss-process=video/snapshot,t_1000,f_jpg");
|
|
@@ -196,6 +197,7 @@ var UploadUI = function UploadUI(props) {
|
|
|
196
197
|
});
|
|
197
198
|
}
|
|
198
199
|
} else {
|
|
200
|
+
item.status = 'error';
|
|
199
201
|
if (options !== null && options !== void 0 && options.onError) options.onError(msg, options === null || options === void 0 ? void 0 : options.file);
|
|
200
202
|
MessageUI.error(msg);
|
|
201
203
|
}
|