内容发布完成

This commit is contained in:
aixianling
2021-12-20 17:29:52 +08:00
parent 6d0810031d
commit 14e0cd8faf
6 changed files with 470 additions and 3 deletions

View File

@@ -0,0 +1,38 @@
<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>