|
@@ -35,7 +35,7 @@
|
|
<!-- </transition-group>-->
|
|
<!-- </transition-group>-->
|
|
<!-- </template>-->
|
|
<!-- </template>-->
|
|
<el-upload
|
|
<el-upload
|
|
- :action="define.comUploadUrl"
|
|
|
|
|
|
+ :action="comUploadUrl"
|
|
:headers="uploadHeaders"
|
|
:headers="uploadHeaders"
|
|
:on-success="handleSuccess"
|
|
:on-success="handleSuccess"
|
|
:on-error="handleError"
|
|
:on-error="handleError"
|
|
@@ -139,6 +139,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ comUploadUrl: '',
|
|
url: '',
|
|
url: '',
|
|
uuid: '',
|
|
uuid: '',
|
|
fileList: [],
|
|
fileList: [],
|
|
@@ -162,8 +163,10 @@ export default {
|
|
} catch {}
|
|
} catch {}
|
|
this.uuid = g.guid(8)
|
|
this.uuid = g.guid(8)
|
|
if (process.env.NODE_ENV === 'development') {
|
|
if (process.env.NODE_ENV === 'development') {
|
|
|
|
+ this.comUploadUrl = this.define.comUploadUrl
|
|
this.url = this.define.comUrl + '/work/uploadFile.html?uid=' + 'uid' + '&uuid=' + this.uuid + '&limit=' + this.limit + '&tenantId=' + tenantId
|
|
this.url = this.define.comUrl + '/work/uploadFile.html?uid=' + 'uid' + '&uuid=' + this.uuid + '&limit=' + this.limit + '&tenantId=' + tenantId
|
|
} else {
|
|
} else {
|
|
|
|
+ this.comUploadUrl = APP_CONFIG.API_URL
|
|
this.url = document.location.origin + '/work/uploadFile.html?uid=' + 'uid' + '&uuid=' + this.uuid + '&limit=' + this.limit + '&tenantId=' + tenantId
|
|
this.url = document.location.origin + '/work/uploadFile.html?uid=' + 'uid' + '&uuid=' + this.uuid + '&limit=' + this.limit + '&tenantId=' + tenantId
|
|
}
|
|
}
|
|
this.fileList = this.value
|
|
this.fileList = this.value
|