黑龙江

This commit is contained in:
liuye
2024-09-25 15:01:06 +08:00
parent 4801309e52
commit dfea39a891
16 changed files with 345 additions and 130 deletions

View File

@@ -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)