mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
教师职业照,图片移除问题
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="component-upload-image" :style="`width:${width};height:${height};`">
|
||||
<div class="component-upload-image" :style="`width:${width};height:${height};`">
|
||||
<el-upload
|
||||
:action="uploadImgUrl"
|
||||
class="image-upload"
|
||||
@@ -15,8 +15,8 @@
|
||||
:show-file-list="false"
|
||||
:headers="headers"
|
||||
style="display: inline-block; vertical-align: top;">
|
||||
|
||||
<el-image v-if="!value" :src="value" :style="`width:${width};height:${height};`">
|
||||
|
||||
<el-image v-if="!value" :style="`width:${width};height:${height};`"> -->
|
||||
<div slot="error" class="image-slot" :style="`line-height:${height};`">
|
||||
<i class="el-icon-plus" />
|
||||
</div>
|
||||
@@ -133,7 +133,7 @@ export default {
|
||||
}else if(that.endWith(this.fileSizeLimit,"KB")){
|
||||
sizeLimt = size * 1024;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sizeLimt > 0 && file.size > sizeLimt) {
|
||||
that.$message.error("图片不能超过"+this.fileSizeLimit+",请重新上传!")
|
||||
@@ -152,7 +152,7 @@ export default {
|
||||
}
|
||||
}
|
||||
resolve(file)
|
||||
})
|
||||
})
|
||||
},
|
||||
handleUploadError() {
|
||||
this.$message({
|
||||
|
||||
Reference in New Issue
Block a user