|
|
@@ -80,7 +80,7 @@ import UploaderListItem from './UploaderListItem.vue';
|
|
|
import FlexView from '../layout/FlexView.vue';
|
|
|
import FlexCol from '../layout/FlexCol.vue';
|
|
|
import type { UploaderAction, UploaderItem } from './Uploader';
|
|
|
-import { Debounce, LogUtils } from '@imengyu/imengyu-utils';
|
|
|
+import { Debounce, formatError, LogUtils } from '@imengyu/imengyu-utils';
|
|
|
import Text from '../basic/Text.vue';
|
|
|
import { actionSheet } from '../dialog/CommonRoot';
|
|
|
|
|
|
@@ -517,7 +517,7 @@ function startUploadItem(item: UploaderItem) {
|
|
|
item.message = ('' + error) || '上传失败';
|
|
|
updateListItem(item);
|
|
|
reject(error);
|
|
|
- LogUtils.printLog(TAG, 'error', `上传文件 ${item.filePath} 失败,错误信息:${error}`);
|
|
|
+ LogUtils.printLog(TAG, 'error', `上传文件 ${item.filePath} 失败,错误信息:${formatError(error)}`);
|
|
|
},
|
|
|
onFinish(result, message) {
|
|
|
updateProgressDebounce.cancel();
|