<template>
	<view>
		<view class="center">{{content}}</view>
	</view>
</template>

<script>
	import API from '@/common/js/api.js'
	export default {
		data() {
			return {
				content:''
			}
		},
		onLoad(option) { //option为object类型，会序列化上个页面传递的参数
			if(option.id){
				let data = {
					id:option.id
				}
				API.getErrorInfo(data, res => {
					this.content = res.data.content
					// console.log(res);
				})
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
.center{
	text-align: center;
	margin-top: 100rpx;
	padding: 0px 100rpx;
}
</style>
