编程知识 cdmana.com

show-message 处理element 图片上传后还是提示要上传图片的问题

    <el-form-item label="文章封面图:" prop="cover" :show-message="!imageUrl">
              <el-input v-model="form.cover" size="small" v-if="false"></el-input>
              <el-upload class="avatar-uploader" :action="path" :show-file-list="false"
                :on-success="handleAvatarSuccess" :headers="uploadHeaders">
                <el-image v-if="imageUrl" :src="imageUrl" class="avatar"></el-image>
                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
              </el-upload>
            </el-form-item>

 

版权声明
本文为[花乐天]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4004801/blog/4838005

Tags Element
Scroll to Top