Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
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
刘怀志
pet-business-web
Commits
f2188ab4
Commit
f2188ab4
authored
Sep 25, 2023
by
陈明豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
7604d0a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
index.vue
src/components/imageCropper/index.vue
+14
-3
banner_edit.vue
src/views/banner_management/banner_edit.vue
+1
-0
No files found.
src/components/imageCropper/index.vue
View file @
f2188ab4
...
...
@@ -16,7 +16,7 @@
:auto-crop-height=
"autoCrop.height"
:auto-crop=
"true"
:fixed=
"false"
:fixed-box=
"
true
"
:fixed-box=
"
autoCrop.fixedBox
"
:output-size=
"1"
output-type=
"png"
:center-box=
"true"
...
...
@@ -55,14 +55,25 @@ export default {
autoCropConfigs
:
{
ArticleInsert
:
{
height
:
300
,
width
:
300
width
:
300
,
fixedBox
:
true
},
BannerInsert
:
{
height
:
300
,
width
:
300
,
fixedBox
:
false
},
BannerEdit
:
{
height
:
300
,
width
:
300
,
fixedBox
:
false
}
}
}
},
computed
:
{
autoCrop
()
{
return
this
.
autoCropConfigs
[
this
.
$route
.
name
]
||
{
height
:
300
,
width
:
300
}
return
this
.
autoCropConfigs
[
this
.
$route
.
name
]
||
{
height
:
300
,
width
:
300
,
fixedBox
:
true
}
}
},
methods
:
{
...
...
src/views/banner_management/banner_edit.vue
View file @
f2188ab4
...
...
@@ -176,6 +176,7 @@ export default {
}
},
created
()
{
console
.
log
(
'router'
,
this
.
$route
)
this
.
id
=
this
.
$route
.
query
.
id
if
(
this
.
id
)
{
this
.
getBannerDetail
()
...
...
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