Commit f593fc0f by 展昭

update

parent 05594618
Showing with 2 additions and 2 deletions
...@@ -46,8 +46,8 @@ function getAccessToken(authcode) { ...@@ -46,8 +46,8 @@ function getAccessToken(authcode) {
} }
axios.post(url, qs.stringify(pms)).then(res => { axios.post(url, qs.stringify(pms)).then(res => {
if (res && res.status) { if (res && res.status) {
console.log('res=',res); const accessToken = res.data.accessToken;
const accessToken = res.accessToken; console.log('accessToken=',accessToken);
resolve(accessToken); resolve(accessToken);
} }
else { else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment