From 7a6644f341970c1715c7717ff698cfd8ec501f6a Mon Sep 17 00:00:00 2001
From: lzhe <181968431@qq.com>
Date: 星期六, 13 四月 2024 22:34:21 +0800
Subject: [PATCH] Merge branch 'master' of http://www.beijingsoft.cn:9090/r/smart-web
---
src/components/scUpload/index.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/components/scUpload/index.vue b/src/components/scUpload/index.vue
index 113b722..1a0a0b9 100644
--- a/src/components/scUpload/index.vue
+++ b/src/components/scUpload/index.vue
@@ -78,7 +78,7 @@
disabled: { type: Boolean, default: false },
round: { type: Boolean, default: false },
onSuccess: { type: Function, default: () => { return true } },
-
+ host: {type: String, default: ''},
cropper: { type: Boolean, default: false },
compress: {type: Number, default: 1},
aspectRatio: {type: Number, default: NaN}
@@ -116,7 +116,7 @@
if(url){
this.file = {
status: "success",
- url: url
+ url: `${this.host}${url}`
}
}else{
this.file = null
@@ -198,7 +198,11 @@
success(res, file){
//閲婃斁鍐呭瓨鍒犻櫎blob
URL.revokeObjectURL(file.tempFile)
- delete file.tempFile
+ try {
+ delete file.tempFile
+ } catch (error) {
+
+ }
var os = this.onSuccess(res, file)
if(os!=undefined && os==false){
this.$nextTick(() => {
--
Gitblit v1.9.3