Files
dvcp_v2_wxcp_app/src/apps/AppContentManager/contentDetail.vue
2021-12-20 17:29:52 +08:00

39 lines
685 B
Vue

<template>
<section class="contentDetail">
<AiDetail :title="detail.title" :detail="detail" :props="props"/>
</section>
</template>
<script>
export default {
name: "contentDetail",
data() {
return {
detail: {title: "内容详情"},
props: {
count: "viewCount"
}
}
},
onLoad(params) {
params.id && this.getDetail(params.id)
},
methods: {
getDetail(id) {
this.$http.post(`/app/appcontentinfo/queryDetailById`, null, {
params: {id}
}).then(res => {
if (res?.data) {
this.detail = res.data
}
})
},
}
}
</script>
<style lang="scss" scoped>
.contentDetail {
}
</style>