编程知识 cdmana.com

Show message handles the problem of prompting to upload an image after the element image is uploaded

    <el-form-item label=" Article cover :" 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>

 

版权声明
本文为[Happy day]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224160308912i.html

Scroll to Top