|
@@ -143,7 +143,7 @@
|
|
|
:before-upload="beforeAvatarUpload"
|
|
|
:on-success="upload_avatar_success"
|
|
|
>
|
|
|
- <img v-if="form.unityPic" :src="form.unityPic" class="avatar">
|
|
|
+ <img v-if="form.unityPic" :src="'https://project.4dage.com/8002/'+form.unityPic" class="avatar">
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
<span class="wwtxt" style="color:#C0C4CC">建议上传最长边不超过1024的JPG格式图片</span>
|
|
@@ -337,7 +337,8 @@ export default {
|
|
|
handleExceed (files, fileList) {
|
|
|
this.$message.warning(`上传数量超出限制`)
|
|
|
},
|
|
|
- before_imglistUpload () {
|
|
|
+ before_imglistUpload (file) {
|
|
|
+ console.log('文件上传之前的钩子', file)
|
|
|
this.loading = true
|
|
|
},
|
|
|
upload_imglist_success (data) {
|
|
@@ -417,6 +418,7 @@ export default {
|
|
|
if (this.type) {
|
|
|
data['id'] = id
|
|
|
}
|
|
|
+ console.log(6666666666666, data)
|
|
|
this.$http.post(urlType[this.type], data).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.$alert(this.$route.params.type ? '操作成功' : '操作成功', '提示', {
|