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
416 B
31 lines
416 B
1 year ago
|
<template>
|
||
|
<view class="bg">
|
||
|
<view class="text" v-html="formateRichText(content)">
|
||
|
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
content:''
|
||
|
};
|
||
|
},
|
||
|
onLoad(option){
|
||
|
this.Post({
|
||
|
id:option.id
|
||
|
},'/api/article/getArticleById').then(res => {
|
||
|
this.content = res.data.content
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang="scss">
|
||
|
.text{
|
||
|
padding: 20rpx;
|
||
|
}
|
||
|
</style>
|