Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
md-vue-chc
Project
Project
Details
Activity
Releases
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
何鹏程
md-vue-chc
Commits
bd8c8f4a
Commit
bd8c8f4a
authored
Nov 08, 2022
by
何鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加文件上传token
parent
afc1a7b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
fileUpload.vue
src/components/fileUpload.vue
+4
-1
No files found.
src/components/fileUpload.vue
View file @
bd8c8f4a
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:before-upload=
"beforeHandle"
:before-upload=
"beforeHandle"
:on-preview=
"previewHandle"
:on-preview=
"previewHandle"
:on-remove=
"removeHandle"
:on-remove=
"removeHandle"
:headers=
"
{ token: token }"
:limit="5"
:limit="5"
multiple
multiple
:on-success="successHandle"
:on-success="successHandle"
...
@@ -15,11 +16,13 @@
...
@@ -15,11 +16,13 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Auth
}
from
'@/util/auth'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
uploadUrl
:
'/mdxtpt/teamwork/api/team/base/uploadImage'
,
uploadUrl
:
'/mdxtpt/teamwork/api/team/base/uploadImage'
,
fileList
:
[]
fileList
:
[],
token
:
Auth
.
getLoginInfo
(),
}
}
},
},
props
:
{
props
:
{
...
...
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