<template>
	<view class="lxwm ql-editor" v-html="node">
		
	</view>
</template>

<script>
	import {criticismaboutMe} from '@/api/user.js'
	import {ref} from 'vue'
	export default {
		setup() {
			let node=ref('')
			criticismaboutMe({}).then(res=>{
				console.log(res.data);
				node.value=res.data.content
				let richtext = node.value
				let regex = new RegExp('<img', 'gi');
				richtext = richtext.replace(regex, '<img style="max-width: 100%;"');
				node.value = richtext
			})
			return {
				node
			}
		}
	}
</script>

<style lang="scss">
	.lxwm{
		width: 100%;
		padding: 20upx 30upx;
		box-sizing: border-box;
	}
</style>
