base64

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 = '新照片'
      }
    },

  

posted @ 2021-12-22 16:18  Kobe_bk  阅读(502)  评论(0编辑  收藏  举报