Detail.vue 756 Bytes
<template>
	<view style="padding: 10px;" class="container">
		<view  v-html="info"></view>
	</view>
</template>

<script>
	import BASE_URL from '@/common/config.js'; 
	export default {
		data() {
			return {
				info: "",
			};
		},
		onLoad(e) {
			this.API.GetDetail(e.id).then(res => {
				if (res.code == 200) {
					let content = res.data.content;
					content = content.replaceAll('<img','<img style="max-width:100%;"');
					this.info = content;
				}
			})
		},
		methods: {
		
		}
	}
</script>
<style lang="scss" scoped>
	.container{
		max-width: 100vw;
		img{
			max-width: 100%;
		}
	}
</style>
<style lang="scss">
	/deep/ rich-text{
		width: 100px !important;
		height: 100px !important;
	}
	
</style>