InformationDetails.vue 731 字节
<template>
	<view class="">
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	import { arcDetail } from '@/api/mine.js'
	export default {
		data() {
			return {
				id: '',
				content:''
			}
		},
		onLoad(e) {
			this.id = e.id
			this.arcDetail()
		},
		methods: {
			async arcDetail(){
			  try {
			    const res = await arcDetail(this.id)
				this.content = res.detail.content
				 uni.setNavigationBarTitle({
				      title: res.detail.title
				    })
			    console.log('arcDetail', res)
			    // 保存数据
			  } catch (err) {
			 	uni.showToast({ title:err,icon:'none' })
			    console.log('arcDetail', err)
			  }
			},
		},
	}
</script>

<style>
</style>