Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
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
c43100af
authored
Jun 19, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
91aa45ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
public/index.html
src/router/index.ts
src/views/SelectIdentity.vue
public/index.html
View file @
c43100af
...
...
@@ -6,7 +6,7 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
员工自助
.
</title>
<title>
员工自助
</title>
</head>
<body>
...
...
src/router/index.ts
View file @
c43100af
...
...
@@ -97,6 +97,8 @@ function getPathByTo(to, authcode_key) {
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
console
.
log
(
'开始路由'
);
if
(
isOpenHttps
===
'true'
&&
location
.
href
.
startsWith
(
'http://'
))
{
location
.
href
=
location
.
href
.
replace
(
'http://'
,
'https://'
);
}
...
...
@@ -107,6 +109,10 @@ router.beforeEach((to, from, next) => {
}
const
authcode
=
to
.
query
.
authCode
||
to
.
query
.
authcode
;
console
.
log
(
'authcode='
,
authcode
);
if
(
!!
authcode
)
{
getAccessToken
(
authcode
)
.
then
((
res
)
=>
{
...
...
src/views/SelectIdentity.vue
View file @
c43100af
...
...
@@ -92,7 +92,7 @@ export default class SelectIdentity extends Vue {
}
})
.
catch
(
err
=>
{
console
.
log
(
"err="
,
err
);
console
.
log
(
"err="
);
});
}
...
...
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