TA贡献1872条经验 获得超3个赞
constdefaultOptions={credentials:'include',headers:{Token:window.localStorage.getItem('token')?JSON.parse(window.localStorage.getItem('token')):'',},};
credentials:'include',headers:{Token:window.localStorage.getItem('token')?JSON.parse(window.localStorage.getItem('token')):'',},};
headers:{Token:window.localStorage.getItem('token')?JSON.parse(window.localStorage.getItem('token')):'',},};
Token:window.localStorage.getItem('token')?JSON.parse(window.localStorage.getItem('token')):'',},};
?JSON.parse(window.localStorage.getItem('token')):'',},};
:'',},};
},};
};
TA贡献1790条经验 获得超9个赞
看了dva官网的issue然后也有看到相关的issue也是想在request.js读取store里的内容。最后dva现在的维护者给出的方案是用本地储存的方案。在request.js中读取
数据结构与算法(前端版)
¥ 58.00
Web前端开发修炼指南
解锁前端面试体系核心攻略
¥ 78.00
高薪之路—前端面试精选集
JavaScript 设计模式精讲
¥ 48.00
举报