Commit 7a0cbf32 by cocomilk2012

update

parent 2cdb23ba
Showing with 3 additions and 1 deletions
......@@ -68,6 +68,8 @@ function getAccessToken(authcode) {
};
axios.post(url, qs.stringify(pms)).then((res) => {
if (res && res.status) {
console.log('res.data.access_token', res.data.access_token);
const accessToken = res.data.access_token;
resolve(accessToken);
} else {
......@@ -108,7 +110,7 @@ router.beforeEach((to, from, next) => {
if (!!authcode) {
getAccessToken(authcode)
.then((res) => {
const redirectPath = getPathByTo(to, 'authcode');
const redirectPath = getPathByTo(to, 'authCode');
console.log('redirectPath=', redirectPath);
//@ts-ignore
const accessToken: string = res;
......
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