This commit is contained in:
@jyuhsin
2025-10-19 18:46:47 +08:00
parent eebded3e1b
commit 3f70bd03f3
2 changed files with 4 additions and 3 deletions
@@ -1,9 +1,9 @@
const optionImg = {
template: /*language=HTML*/ `
<el-dialog :visible="visible" title="设置图片" append-to-body width="700px">
<el-dialog :visible.sync="visible" title="设置图片" append-to-body width="700px">
<div style="background: #f7f8f9;text-align: center;border: solid 1px #d7d8d9;border-radius: 4px;">
<el-upload
action="/file_server/uploadFile"
action="/platform/sys/file/uploadDynamicReturnUrl"
:show-file-list="false"
:on-success="handleSuccess"
:before-upload="beforeUpload">
@@ -38,7 +38,7 @@ const optionImg = {
console.log(file)
console.log(fileList)
if (response.code === 0) {
this.img = FILE_STREAM_PREVIEW_ADDRESS + "?id=" + response.data.filepath
this.img = response.data
// this.img = "/platform/sys/file/download?id=t38dmq4beuhrupqb54prl52t4u"
this.$message.success("图片上传成功")
}
@@ -32,6 +32,7 @@ const setting = {
},
onConfirm(){
this.$emit('confirm', { option:this.formData,ext:this.ext })
this.visible = false
}
}