内网开发
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
<script>
|
||||
import zmmUploadImageDrag from './zmm-upload-image-drag.vue';
|
||||
import http from '@/common/request.js';
|
||||
import customHttp from "@/common/customHttp.js"
|
||||
import config from "@/common/config.js"
|
||||
export default {
|
||||
components: {
|
||||
zmmUploadImageDrag
|
||||
@@ -67,12 +69,12 @@ export default {
|
||||
fileAction: {
|
||||
//后台文件上传接口
|
||||
type: String,
|
||||
default: http.baseUrl + '/file/upload'
|
||||
default: config.getImApiUrl() + '/file/upload'
|
||||
},
|
||||
videoAction: {
|
||||
//后台上传接口
|
||||
type: String,
|
||||
default: http.baseUrl + '/file/uploadVideo'
|
||||
default: config.getImApiUrl() + '/file/uploadVideo'
|
||||
},
|
||||
formData: {
|
||||
//上传所附带数据
|
||||
@@ -253,9 +255,12 @@ export default {
|
||||
}
|
||||
// console.log('success to upload image: ' + res.data)
|
||||
var resItem=JSON.parse(res.data)
|
||||
|
||||
console.error(resItem)
|
||||
|
||||
_self.$emit('oneComplete', {
|
||||
name: resItem.data.fileName,
|
||||
url: resItem.data.fullPath,
|
||||
name: resItem.data,
|
||||
url: resItem.data,
|
||||
type:'IMAGE'
|
||||
},_self.chooseType);
|
||||
resolve(res.data);
|
||||
|
||||
Reference in New Issue
Block a user