时空网前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
533 B

<template>
<view class="padding-lr">
<rich-text :nodes="detail.content" v-if="detail.content"></rich-text>
<my-nocontent v-else></my-nocontent>
</view>
</template>
<script>
export default {
data() {
return {
article_id: 0,
detail: {}
}
},
onLoad(options){
this.article_id = options.id;
this.getData();
},
methods: {
getData(){
this.$http(this.API.API_ARTICLE_DETAIL, {article_id: this.article_id}).then(res => {
this.detail = res.data;
})
}
}
}
</script>
<style>
</style>