Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
郑艺斌
/
emaint-web-master
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
7bc0315e
authored
Oct 29, 2022
by
zhuoym
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整上传地址为配置
parent
cd22db79
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/views/problemConfiguration/index.vue
src/views/problemConfiguration/index.vue
View file @
7bc0315e
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
</div>
</div>
<Upload
v-if=
"!uploadList.length || uploadList.length < 1"
ref=
"upload"
:show-upload-list=
"false"
<Upload
v-if=
"!uploadList.length || uploadList.length < 1"
ref=
"upload"
:show-upload-list=
"false"
:on-success=
"handleSuccess"
:format=
"['jpg', 'png']"
:max-size=
"2048"
type=
"drag"
:on-success=
"handleSuccess"
:format=
"['jpg', 'png']"
:max-size=
"2048"
type=
"drag"
:action=
`${axios.defaults.baseURL}/api/file/uploadIcon`
:before-upload=
"handleBeforeUpload"
:action=
"uploadUrl"
:before-upload=
"handleBeforeUpload"
style=
"display: inline-block;width:58px;"
>
style=
"display: inline-block;width:58px;"
>
<div
style=
"width: 58px;height:58px;line-height: 58px;"
>
<div
style=
"width: 58px;height:58px;line-height: 58px;"
>
<Icon
type=
"ios-plus-empty"
size=
"20"
></Icon>
<Icon
type=
"ios-plus-empty"
size=
"20"
></Icon>
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
</div>
</div>
<Upload
v-if=
"!uploadList.length || uploadList.length < 1"
ref=
"upload"
:show-upload-list=
"false"
<Upload
v-if=
"!uploadList.length || uploadList.length < 1"
ref=
"upload"
:show-upload-list=
"false"
:on-success=
"handleSuccess"
:format=
"['jpg', 'png']"
:max-size=
"2048"
type=
"drag"
:on-success=
"handleSuccess"
:format=
"['jpg', 'png']"
:max-size=
"2048"
type=
"drag"
:action=
`${axios.defaults.baseURL}//api/file/uploadIcon`
:before-upload=
"handleBeforeUpload"
:action=
"uploadUrl"
:before-upload=
"handleBeforeUpload"
style=
"display: inline-block;width:58px;"
>
style=
"display: inline-block;width:58px;"
>
<div
style=
"width: 58px;height:58px;line-height: 58px;"
>
<div
style=
"width: 58px;height:58px;line-height: 58px;"
>
<Icon
type=
"ios-plus-empty"
size=
"20"
></Icon>
<Icon
type=
"ios-plus-empty"
size=
"20"
></Icon>
...
@@ -203,6 +203,7 @@ import qs from "qs";
...
@@ -203,6 +203,7 @@ import qs from "qs";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
uploadUrl
:
`
${
axios
.
defaults
.
baseURL
}
/api/file/uploadIcon`
,
seriesImage
:
''
,
seriesImage
:
''
,
uploadList
:
[],
uploadList
:
[],
visible
:
false
,
visible
:
false
,
...
...
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