Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
front-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
framework
front-backend
Commits
a4299d94
Commit
a4299d94
authored
Nov 28, 2019
by
dqjdda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
取消拼接token 前缀,由后端处理
parent
11d1a803
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
src/utils/request.js
+1
-1
src/views/components/Editor.vue
+1
-1
src/views/components/MarkDown.vue
+1
-1
src/views/mnt/deploy/deploy.vue
+1
-1
src/views/system/user/center.vue
+1
-1
src/views/tools/email/send.vue
+1
-1
src/views/tools/picture/index.vue
+1
-1
src/views/tools/storage/local/index.vue
+1
-1
src/views/tools/storage/qiniu/index.vue
+1
-1
No files found.
src/utils/request.js
View file @
a4299d94
...
...
@@ -15,7 +15,7 @@ const service = axios.create({
service
.
interceptors
.
request
.
use
(
config
=>
{
if
(
getToken
())
{
config
.
headers
[
'Authorization'
]
=
'Bearer '
+
getToken
()
// 让每个请求携带自定义token 请根据实际情况自行修改
config
.
headers
[
'Authorization'
]
=
getToken
()
// 让每个请求携带自定义token 请根据实际情况自行修改
}
config
.
headers
[
'Content-Type'
]
=
'application/json'
return
config
...
...
src/views/components/Editor.vue
View file @
a4299d94
...
...
@@ -15,7 +15,7 @@ export default {
data
()
{
return
{
headers
:
{
'Authorization'
:
'Bearer '
+
getToken
()
'Authorization'
:
getToken
()
},
editorContent
:
`<h3 style="text-align: center;">欢迎使用 wangEditor 富文本编辑器!</h3>
...
...
src/views/components/MarkDown.vue
View file @
a4299d94
...
...
@@ -42,7 +42,7 @@ export default {
url
:
this
.
imagesUploadApi
,
method
:
'post'
,
data
:
formdata
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
,
'Authorization'
:
'Bearer '
+
getToken
()
}
headers
:
{
'Content-Type'
:
'multipart/form-data'
,
'Authorization'
:
getToken
()
}
}).
then
((
data
)
=>
{
this
.
data
=
data
.
data
this
.
$refs
.
md
.
$img2Url
(
pos
,
this
.
data
.
data
[
0
])
...
...
src/views/mnt/deploy/deploy.vue
View file @
a4299d94
...
...
@@ -38,7 +38,7 @@ export default {
apps
:
[],
servers
:
[],
headers
:
{
Authorization
:
'Bearer '
+
getToken
()
Authorization
:
getToken
()
},
deployInfo
:
{},
form
:
{
...
...
src/views/system/user/center.vue
View file @
a4299d94
...
...
@@ -99,7 +99,7 @@ export default {
Avatar
:
Avatar
,
ico
:
'el-icon-refresh'
,
headers
:
{
'Authorization'
:
'Bearer '
+
getToken
()
'Authorization'
:
getToken
()
}
}
},
...
...
src/views/tools/email/send.vue
View file @
a4299d94
...
...
@@ -30,7 +30,7 @@ export default {
data
()
{
return
{
headers
:
{
'Authorization'
:
'Bearer '
+
getToken
()
'Authorization'
:
getToken
()
},
loading
:
false
,
form
:
{
subject
:
''
,
tos
:
[],
content
:
''
},
tos
:
[{
...
...
src/views/tools/picture/index.vue
View file @
a4299d94
...
...
@@ -134,7 +134,7 @@ export default {
title
:
'图片'
,
crudMethod
:
{
...
crudPic
},
headers
:
{
'Authorization'
:
'Bearer '
+
getToken
()
'Authorization'
:
getToken
()
},
dialogImageUrl
:
''
,
dialogVisible
:
false
,
...
...
src/views/tools/storage/local/index.vue
View file @
a4299d94
...
...
@@ -168,7 +168,7 @@ export default {
title
:
'文件'
,
crudMethod
:
{
...
crudFile
},
delAllLoading
:
false
,
headers
:
{
'Authorization'
:
'Bearer '
+
getToken
()
},
headers
:
{
'Authorization'
:
getToken
()
},
form
:
{
id
:
null
,
name
:
null
}
}
},
...
...
src/views/tools/storage/qiniu/index.vue
View file @
a4299d94
...
...
@@ -129,7 +129,7 @@ export default {
title
:
'文件'
,
crudMethod
:
{
...
crudQiNiu
},
icon
:
'el-icon-refresh'
,
url
:
''
,
headers
:
{
'Authorization'
:
'Bearer '
+
getToken
()
},
dialog
:
false
,
url
:
''
,
headers
:
{
'Authorization'
:
getToken
()
},
dialog
:
false
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
fileList
:
[],
files
:
[],
newWin
:
null
}
},
...
...
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