Commit 35e5169b by cocomilk2012

update

parent 7a0cbf32
Showing with 3 additions and 1 deletions
......@@ -83,6 +83,8 @@ function getAccessToken(authcode) {
function getPathByTo(to, authcode_key) {
let toPath = to.path || '/';
for (let key in to.query) {
key = key.toLowerCase();
console.log('key=', key);
if (key == authcode_key) {
continue;
}
......@@ -110,7 +112,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