Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
e21bcd67
Commit
e21bcd67
authored
Jan 05, 2021
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 处理accessToken
parent
d794a70b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
5 deletions
+18
-5
user.api.ts
app/web/api/user.api.ts
+6
-2
index.vue
app/web/component/layout/activity/index.vue
+2
-2
index.vue
app/web/lib/Form/index.vue
+2
-0
http.service.ts
app/web/service/http.service.ts
+1
-1
global.d.ts
app/web/typings/global.d.ts
+7
-0
No files found.
app/web/api/user.api.ts
View file @
e21bcd67
...
...
@@ -9,9 +9,13 @@ export function getCaptcha() {
}
export
function
login
(
params
)
{
return
http
.
post
(
`
${
opapiHost
}
/backStms/prologue/login`
,
qs
.
stringify
(
params
));
return
http
.
post
(
`
${
opapiHost
}
/backStms/prologue/login`
,
qs
.
stringify
(
params
),
{
accessToken
:
true
});
}
export
function
getUserInfo
()
{
return
http
.
get
(
`
${
opapiHost
}
/backStms/oauth/currentuserinfo`
);
return
http
.
get
(
`
${
opapiHost
}
/backStms/oauth/currentuserinfo`
,
{
accessToken
:
true
});
}
\ No newline at end of file
app/web/component/layout/activity/index.vue
View file @
e21bcd67
...
...
@@ -18,11 +18,11 @@
</
template
>
<
style
>
html
{
font-size
:
10vw
;
font-size
:
10vw
!important
;
}
@media
screen
and
(
min-width
:
768
Px
)
{
html
{
font-size
:
37.5
Px
;
font-size
:
37.5
Px
!important
;
}
body
{
max-width
:
375
Px
;
...
...
app/web/lib/Form/index.vue
View file @
e21bcd67
...
...
@@ -327,6 +327,8 @@ export default {
}
}
&-submit {
height: 50px !important;
border-radius: 8px !important;
border: 0 !important;
}
}
...
...
app/web/service/http.service.ts
View file @
e21bcd67
...
...
@@ -63,7 +63,7 @@ instance.interceptors.request.use(
const
token
=
localStorage
.
get
(
'
token
'
);
if
(
token
)
{
config
.
headers
[
'
X-Auth-Token
'
]
=
token
;
config
.
headers
[
'
Access-Token
'
]
=
token
;
if
(
config
.
accessToken
)
{
config
.
headers
[
'
Access-Token
'
]
=
token
;
}
}
return
config
;
...
...
app/web/typings/global.d.ts
View file @
e21bcd67
import
{
AxiosRequestConfig
}
from
'
axios
'
;
declare
var
window
:
Window
;
declare
var
EASY_ENV_IS_NODE
:
boolean
;
...
...
@@ -5,3 +7,8 @@ interface Window {
__INITIAL_STATE__
:
any
;
}
declare
module
'
axios
'
{
export
interface
AxiosRequestConfig
{
accessToken
?:
boolean
;
}
}
\ No newline at end of file
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