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
a081d73b
authored
May 09, 2020
by
展昭
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
tj
parent
c89fa7a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
src/api/http.js
src/store/index.js
src/api/http.js
View file @
a081d73b
...
...
@@ -40,6 +40,7 @@ http.interceptors.response.use(
},
(
error
)
=>
{
Toast
.
clear
();
console
.
log
(
'error='
,
error
);
let
info
=
{};
let
{
status
}
=
error
.
response
;
info
=
{
...
...
src/store/index.js
View file @
a081d73b
import
axios
from
"axios"
;
import
http
from
'../api/http.js'
import
qs
from
"qs"
;
import
Vue
from
'vue'
;
import
Vuex
from
'vuex'
;
...
...
@@ -27,7 +27,7 @@ async function getToken(access_token, appid) {
};
let
commonPms
=
GetCommonPms
();
let
url
=
`
${
oidc_config
.
authority
}
/connect/token?
${
commonPms
}
`
;
await
axios
await
http
.
post
(
url
,
qs
.
stringify
(
pms
))
.
then
(
res
=>
{
...
...
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