Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c9a0773f
authored
May 09, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tj
parent
afc3d3a0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
src/router/index.js
src/store/index.js
src/router/index.js
View file @
c9a0773f
...
@@ -29,7 +29,6 @@ const router = new VueRouter({
...
@@ -29,7 +29,6 @@ const router = new VueRouter({
})
})
//自动登录
//自动登录
function
autoLogin
(
payload
=
{
autoCode
,
redirectPath
})
{
function
autoLogin
(
payload
=
{
autoCode
,
redirectPath
})
{
console
.
log
(
'redirectPath='
,
payload
.
redirectPath
);
store
.
dispatch
(
"authenticateOidc"
,
{
store
.
dispatch
(
"authenticateOidc"
,
{
options
:
{
options
:
{
extraQueryParams
:
{
extraQueryParams
:
{
...
@@ -60,7 +59,6 @@ router.beforeEach((to, from, next) => {
...
@@ -60,7 +59,6 @@ router.beforeEach((to, from, next) => {
if
(
autoLoginParams
)
{
if
(
autoLoginParams
)
{
autoLogin
(
autoLoginParams
);
autoLogin
(
autoLoginParams
);
}
else
{
}
else
{
console
.
log
(
'eeee'
);
next
();
next
();
}
}
})
})
...
@@ -93,6 +91,9 @@ router.beforeEach((to, from, next) => {
...
@@ -93,6 +91,9 @@ router.beforeEach((to, from, next) => {
store
.
dispatch
(
"signOutOidc"
)
store
.
dispatch
(
"signOutOidc"
)
}
else
{
}
else
{
console
.
log
(
'abc'
);
console
.
log
(
'abc'
);
console
.
log
(
'to='
,
to
);
console
.
log
(
'from='
,
from
);
next
()
next
()
}
}
}
}
...
@@ -105,7 +106,6 @@ router.beforeEach((to, from, next) => {
...
@@ -105,7 +106,6 @@ router.beforeEach((to, from, next) => {
autoLogin
({
autoCode
:
authcode
,
redirectPath
:
toPath
})
autoLogin
({
autoCode
:
authcode
,
redirectPath
:
toPath
})
});
});
}
else
{
}
else
{
console
.
log
(
'def'
);
next
()
next
()
}
}
...
...
src/store/index.js
View file @
c9a0773f
...
@@ -38,19 +38,10 @@ async function getToken(access_token, appid) {
...
@@ -38,19 +38,10 @@ async function getToken(access_token, appid) {
},
},
err
=>
{
err
=>
{
console
.
log
(
"789err="
,
err
);
console
.
log
(
"789err="
,
err
);
this
.
$router
.
push
({
name
:
"oidcCallback"
,
query
:
{
err
:
err
.
response
.
data
.
error_description
}
});
}
}
)
)
.
catch
(
err
=>
{
.
catch
(
err
=>
{
console
.
log
(
"111err="
,
err
);
console
.
log
(
"111err="
,
err
);
this
.
$router
.
push
({
name
:
"oidcCallback"
,
query
:
{
err
:
err
.
response
.
data
.
error_description
}
});
});
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment