|
|
@@ -8,6 +8,8 @@ export default {
|
|
|
topic: {}
|
|
|
},
|
|
|
loading: {
|
|
|
+ data: false,
|
|
|
+ empty: false,
|
|
|
submit: false
|
|
|
},
|
|
|
show: {
|
|
|
@@ -79,6 +81,7 @@ export default {
|
|
|
},
|
|
|
async inData() {
|
|
|
this.loading.data = true
|
|
|
+ this.loading.empty = false
|
|
|
try {
|
|
|
let { result_id } = this.$route.query
|
|
|
let pm = result_id
|
|
|
@@ -94,10 +97,11 @@ export default {
|
|
|
data.topic.memo = data.topic.memo.replace(/\n/g, '<br />')
|
|
|
}
|
|
|
if (this.layoutType) {
|
|
|
- this.layoutCurrent = this.layoutType[2 || data.topic.layout_type || 1] || ''
|
|
|
+ this.layoutCurrent = this.layoutType[data.topic.layout_type] || 'van-empty'
|
|
|
}
|
|
|
this.$set(this, 'data', data)
|
|
|
} catch (error) {
|
|
|
+ this.loading.empty = true
|
|
|
console.log(error)
|
|
|
}
|
|
|
this.loading.data = false
|