黑龙江
This commit is contained in:
@@ -62,10 +62,6 @@ export default {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
imgUrlHttp: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(['token']),
|
||||
@@ -171,8 +167,8 @@ export default {
|
||||
this.fileList.push(res.data)
|
||||
} else if (this.api == '/admin/file/add-portrait') {
|
||||
this.fileList.push({url: res.data?.split(";")?.[0], id: res.data?.split(";")?.[1]})
|
||||
}else if (this.api == '/common/upload') { //图片url回显需先拼接imgUrlHttp
|
||||
this.fileList.push({url: this.imgUrlHttp + res.data.fileName, fileName: res.data.originalFilename, filePath: this.imgUrlHttp + res.data.fileName})
|
||||
}else if (this.api == '/common/upload') { //黑龙江图片上传接口
|
||||
this.fileList.push({fileName: res.data.fileName, filePath: res.data.fileName})
|
||||
}
|
||||
this.$emit("update:def", this.fileList)
|
||||
this.$emit("list", this.fileList)
|
||||
|
||||
Reference in New Issue
Block a user