jeecg

自定义token
return new Promise((resolve, reject) => {
        debugger;
        console.log(ACCESS_TOKEN)
        console.log(Vue.ls.get(ACCESS_TOKEN))
        const token = Vue.ls.get(ACCESS_TOKEN);
        debugger;
        resolve({
          url: this.uploadUrl,
          method: 'POST',
          headers: [
            { name: 'Content-Type', value: 'application/json-patch+json'},
            { name: 'Authorization', value: token }
          ]
        })
      })

 

你可能感兴趣的:(jeecg)