base64: this.urlImg = 'data:image/jpg;base64,' + data
data:为后端返回地址
luckOldImage(data, type) { this.photoVisible = true this.urlImg = 'data:image/jpg;base64,' + data if (type == 0) { this.title = '旧照片' } else { this.title = '新照片' } },