|
|
@@ -242,16 +242,13 @@ export default {
|
|
|
} else if (!sizeOk) {
|
|
|
this.$message.error('照片大小超过20M!')
|
|
|
reject(file)
|
|
|
- } else if (file.name.length > 32) {
|
|
|
- this.$message.error('照片名字不能超过32个字!')
|
|
|
- reject(file)
|
|
|
} else {
|
|
|
- this.$message.success('上传成功')
|
|
|
resolve(file)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
upload_thumb_success (data) {
|
|
|
+ this.$message.success('上传成功')
|
|
|
// console.log('图片上传成功', data.data.urlPath)
|
|
|
this.ruleForm.thumb = data.data.urlPath
|
|
|
},
|