-data',
          },
          data: formData,
        })
        document.querySelector('#playlist_cover').src = res.data.data.url
      }
      function getImgSize(file) {
        return new Promise((resolve, reject) => {
          let reader = new FileReader()
          reader.readAsDataURL(file)
          reader.onload = function (theFile) {
            let image = new Image()
            image.src = theFile.target.result
            image.onload = function () {
              resolve({
                w