1

上传效果很好,但我收到了这个烦人的警告。是什么导致了这个问题?

我正在这样使用

        <el-upload
            class="avatar-uploader"
            ref="upload"
            action="/app/admin/product-image"
            :with-credentials="true"
            :thumbnail-mode="true"

            :file-list="fileList"
            :on-success="handleAvatarSuccess"
            :on-change="picPreview"
            :on-error="uploadError"
            :auto-upload="true"
            :data="{product_id:data.id}"
            :multiple="false"
            :on-preview="handlePictureCardPreview"
                        :on-remove="handleRemove"
                        list-type="picture-card"
            :before-upload="beforeAvatarUpload">
            <i class="el-icon-plus"></i>
        </el-upload>


        <el-dialog :visible.sync="dialogVisible">
            <img width="100%" :src="dialogImageUrl" alt="">
        </el-dialog>
4

1 回答 1

1

尝试:

<el-form ref="form" label-width="120px">
     <!-- form content here --->
</el-form>

从我那里工作。

于 2018-08-29T18:00:13.990 回答