修改bug

This commit is contained in:
gongjiale 2022-12-01 11:21:02 +08:00
parent 0993ece389
commit ae9fe6c8c2
1 changed files with 5 additions and 4 deletions

View File

@ -168,7 +168,7 @@
>
<i class="el-icon-plus"></i>
</el-upload>
<el-dialog :visible.sync="dialogVisible">
<el-dialog :visible.sync="dialogVisible" append-to-body>
<img width="100%" :src="picImg" alt="" />
</el-dialog>
<div
@ -224,7 +224,7 @@ export default {
window.SITE_CONFIG.apiURL + '/upload?token=' + Cookies.get('ucsToken'),
labelPosition: 'left',
dialogFormVisible: false,
// dialogImageUrl: '',
// dialogImageUrl: '',
ruleForm: {
name: '',
num: '',
@ -294,12 +294,13 @@ export default {
this.fileList = []
},
handlePictureCardPreview (file) {
this.dialogImageUrl = file.url
this.picImg = file.url
this.dialogVisible = true
},
//
beforeUpload (file, fileList) {
this.$message.error('最多只能上传一张图片!')
this.$message.error('最多只能上传一张图片!')
},
//
onSuccess (response, file, fileList) {