@lambo-design/upload-file 1.0.0-beta.36 → 1.0.0-beta.37
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/package.json +3 -3
- package/src/index.vue +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/upload-file",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.37",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"axios": "^0.24.0",
|
|
14
14
|
"axios-cache-plugin": "^0.1.0",
|
|
15
|
-
"@lambo-design/
|
|
16
|
-
"@lambo-design/
|
|
15
|
+
"@lambo-design/shared": "^1.0.0-beta.373",
|
|
16
|
+
"@lambo-design/core": "^4.7.1-beta.183"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
19
|
"release-upload-file": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
package/src/index.vue
CHANGED
|
@@ -301,9 +301,15 @@ export default {
|
|
|
301
301
|
} else {
|
|
302
302
|
self.$emit("upload-result", null);
|
|
303
303
|
}
|
|
304
|
+
} else {
|
|
305
|
+
self.$Message.error("上传文件失败,原因是:" + response.data.data);
|
|
306
|
+
self.loading = false;
|
|
304
307
|
}
|
|
305
308
|
self.$refs.uploadInput.value = null
|
|
306
|
-
})
|
|
309
|
+
}).catch((e) => {
|
|
310
|
+
console.log('doUpload error', e)
|
|
311
|
+
self.loading = false;
|
|
312
|
+
})
|
|
307
313
|
},
|
|
308
314
|
|
|
309
315
|
encode64(value) {
|