Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
walk_daka_h5
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
穆启卓
walk_daka_h5
Commits
5c964e15
Commit
5c964e15
authored
Apr 08, 2019
by
Caiyijun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小修改
parent
62d03f4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
fetch.js
src/components/axios/fetch.js
+1
-1
Record.vue
src/views/Record.vue
+2
-2
No files found.
src/components/axios/fetch.js
View file @
5c964e15
...
...
@@ -18,7 +18,7 @@ export function fetch(options) {
//所有的请求都会带上这些配置,比如全局都要用的身份信息等。
headers
:
{
'Content-Type'
:
'application/json'
,
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1ND
g4OTkzN30.Wrb10H0dVKPr4RzVfuzxrHzM_MTad4So4nzvC0qRuG
o"
'Authorization'
:
process
.
env
.
NODE_ENV
===
'production'
?
(
window
[
'userData'
]
?
window
[
'userData'
].
token
:
''
)
:
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJvcGVuX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsInVuaW9uX2lkIjoiMTExMTExMTExMTExMTExMTExMTExMTExMTExMSIsImV4cCI6MTU1ND
kwMzIwOX0.vp0jBmcncqDzk0TwPt4-_XL5JdPXvTxNQ-u_ps7-7D
o"
// 'token_in_header': global_.token,//token从全局变量那里传过来
},
timeout
:
30
*
1000
// 30秒超时
...
...
src/views/Record.vue
View file @
5c964e15
...
...
@@ -9,7 +9,7 @@
</div>
<div
class=
"other-info-container"
>
<div
class=
"other-info-item"
>
<div
class=
"title"
>
参赛
次
数
</div>
<div
class=
"title"
>
参赛
期
数
</div>
<div
class=
"content"
>
{{
recordTotal
.
total
}}
</div>
</div>
<div
class=
"other-info-item"
>
...
...
@@ -17,7 +17,7 @@
<div
class=
"content"
>
{{
recordTotal
.
rach_rate
}}
%
</div>
</div>
<div
class=
"other-info-item"
>
<div
class=
"title"
>
达标
次
数
</div>
<div
class=
"title"
>
达标
期
数
</div>
<div
class=
"content"
>
{{
recordTotal
.
daka_count
}}
</div>
</div>
</div>
...
...
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