Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
5cf5d105
Commit
5cf5d105
authored
Jul 18, 2023
by
xiaoman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复图片上传失败的问题
parent
a8e27e2f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/views/mall/category.vue
src/views/mall/category.vue
+6
-3
No files found.
src/views/mall/category.vue
View file @
5cf5d105
...
...
@@ -120,7 +120,7 @@
:headers=
"headers"
:action=
"uploadPath"
:show-file-list=
"false"
:on-success=
"upload
Icon
Url"
:on-success=
"upload
CaTableImage
Url"
class=
"avatar-uploader"
accept=
".jpg,.jpeg,.png,.gif"
>
<img
v-if=
"dataForm.caTableImage"
:src=
"dataForm.caTableImage"
class=
"avatar"
>
...
...
@@ -283,7 +283,8 @@ export default {
publisher
:
''
,
parValue
:
''
,
exiQuantity
:
''
,
material
:
''
material
:
''
,
caTableImage
:
''
}
},
handleCreate
(
row
)
{
...
...
@@ -291,7 +292,6 @@ export default {
this
.
dialogStatus
=
'
create
'
this
.
dataForm
.
pid
=
row
.
id
this
.
dataForm
.
level
=
row
.
level
+
1
console
.
log
(
this
.
dataForm
.
level
)
this
.
dialogFormVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'
dataForm
'
].
clearValidate
()
...
...
@@ -329,6 +329,9 @@ export default {
uploadIconUrl
:
function
(
response
)
{
this
.
dataForm
.
icon
=
response
.
data
.
url
},
uploadCaTableImageUrl
:
function
(
response
)
{
this
.
dataForm
.
caTableImage
=
response
.
data
.
url
},
updateData
()
{
this
.
$refs
[
'
dataForm
'
].
validate
(
valid
=>
{
if
(
valid
)
{
...
...
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