Commit f2188ab4 authored by 陈明豪's avatar 陈明豪

bug修改

parent 7604d0a7
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
:auto-crop-height="autoCrop.height" :auto-crop-height="autoCrop.height"
:auto-crop="true" :auto-crop="true"
:fixed="false" :fixed="false"
:fixed-box="true" :fixed-box="autoCrop.fixedBox"
:output-size="1" :output-size="1"
output-type="png" output-type="png"
:center-box="true" :center-box="true"
...@@ -55,14 +55,25 @@ export default { ...@@ -55,14 +55,25 @@ export default {
autoCropConfigs: { autoCropConfigs: {
ArticleInsert: { ArticleInsert: {
height: 300, height: 300,
width: 300 width: 300,
fixedBox: true
},
BannerInsert: {
height: 300,
width: 300,
fixedBox: false
},
BannerEdit: {
height: 300,
width: 300,
fixedBox: false
} }
} }
} }
}, },
computed: { computed: {
autoCrop() { autoCrop() {
return this.autoCropConfigs[this.$route.name] || { height: 300, width: 300 } return this.autoCropConfigs[this.$route.name] || { height: 300, width: 300, fixedBox: true }
} }
}, },
methods: { methods: {
......
...@@ -176,6 +176,7 @@ export default { ...@@ -176,6 +176,7 @@ export default {
} }
}, },
created() { created() {
console.log('router', this.$route)
this.id = this.$route.query.id this.id = this.$route.query.id
if (this.id) { if (this.id) {
this.getBannerDetail() this.getBannerDetail()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment