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

bug修改

parent 7604d0a7
......@@ -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: {
......
......@@ -176,6 +176,7 @@ export default {
}
},
created() {
console.log('router', this.$route)
this.id = this.$route.query.id
if (this.id) {
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