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
b37757d0
authored
Jun 16, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
cfb9a5b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
10 deletions
.env.development
.env.production
.env.staging
src/router/index.js
.env.development
View file @
b37757d0
...
...
@@ -2,6 +2,4 @@ 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='/'
.env.production
View file @
b37757d0
...
...
@@ -2,6 +2,4 @@ VUE_APP_OIDC_CONFIG = '{ "authority": "https://passport.teammix.com", "client_id
VUE_APP_API_BASEURL = 'https://org-team.hrs100.com/'
VUE_APP_API_TEAMMIXURL=''
VUE_APP_PUBLIC_DIR='/'
\ No newline at end of file
.env.staging
View file @
b37757d0
...
...
@@ -2,6 +2,4 @@ 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 @
b37757d0
...
...
@@ -33,10 +33,9 @@ const router = new VueRouter({
})
function
getAccessToken
(
authcode
)
{
console
.
log
(
'authcode='
,
authcode
);
return
new
Promise
((
resolve
,
reject
)
=>
{
var
TEAMMIXURL
=
process
.
env
.
VUE_APP_API_TEAMMIXURL
;
let
url
=
`
${
TEAMMIXURL
}
connect/token
`
;
let
commonPms
=
GetCommonPms
()
;
let
url
=
`
${
oidc_config
.
authority
}
/connect/token?
${
commonPms
}
`
;
let
pms
=
{
"client_id"
:
oidc_config
.
client_id
,
"client_secret"
:
oidc_config
.
client_secret
,
...
...
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