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
f1059024
authored
Jun 16, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
2339ae31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
.env.staging
src/router/index.js
.env.staging
View file @
f1059024
...
...
@@ -2,4 +2,6 @@ VUE_APP_OIDC_CONFIG = '{ "authority": "http://106.120.107.150:5000", "client_id"
VUE_APP_API_BASEURL = 'http://organization.test.hrs100.cn:18080/'
VUE_APP_API_TEAMMIXURL='http://106.120.107.150:5000/'
VUE_APP_PUBLIC_DIR='/'
src/router/index.js
View file @
f1059024
...
...
@@ -33,9 +33,10 @@ const router = new VueRouter({
}
})
function
getAccessToken
(
authCode
)
{
function
getAccessToken
(
authcode
)
{
console
.
log
(
'authcode='
,
authcode
);
return
new
Promise
((
resolve
,
reject
)
=>
{
api
.
getAccessToken
(
auth
C
ode
)
api
.
getAccessToken
(
auth
c
ode
)
.
then
(
res
=>
{
if
(
res
&&
res
.
status
)
{
accessToken
=
res
.
data
.
accessToken
;
...
...
@@ -79,8 +80,6 @@ async function getToken(access_token, appid, next) {
});
}
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
const
authcode
=
to
.
query
.
authCode
||
to
.
query
.
authcode
;
const
appid
=
to
.
query
.
appId
||
to
.
query
.
appid
;
...
...
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