<template>
<div class="up-img">
<el-upload
class="avatar-uploader"
action=""
:show-file-list="false"
:before-upload="beforeAvatarUpload"
:on-progress="getSing"
>
<img v-if="value" :src="value" class="avatar">
<i v-else class="el-icon-plus avatar-uploader-icon" />
</el-upload>
</div>
</template>
<script>
import COS from 'cos-js-sdk-v5' //脚手架安装
import { credential } from '@/api/live' //后台给的临时密匙
export default {
name: 'Upload',
props: {
value: {
type: String,
default: ''
}
},