|
|
@@ -51,7 +51,8 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
putLayoutCurrent () {
|
|
|
- return this.layoutType[this.data.topic.layout_type] || 'van-empty'
|
|
|
+ let layout_type = this.data ? this.data.topic.layout_type : ''
|
|
|
+ return this.layoutType[layout_type] || 'van-empty'
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -123,7 +124,7 @@ export default {
|
|
|
try {
|
|
|
let data = null
|
|
|
if (this.isEdit) {
|
|
|
- data = this.edata || this.data
|
|
|
+ data = this.edata
|
|
|
} else {
|
|
|
let { result_id } = this.$route.query
|
|
|
let pm = result_id
|