<template>
    <div class=''>
        <div v-html="detailData.richContent" class="ql-editor"></div>
    </div>
</template>

<script>
import { requestGet} from "@/js/dai/request";
import { mapGetters } from "vuex";
export default {
    data() {
        return {
            detailData:null
        };
    },
    activated() {
        this.getNoticeDetail()
    },
    methods: {
        async getNoticeDetail() {
			const url = `/sys/sysVersionUpgrade/detail/${this.$route.query.version_id}`;
			const { data, code, msg } = await requestGet(url);
			if (code === 0) {
                this.detailData= data;
			} else {
				this.$message.error(msg);
			}
		},
    },
    components:{},
    computed:{
        maxTableHeight () {
      return this.$store.state.inIframe
        ? this.clientHeight - 360 + this.iframeHeigh
        : this.clientHeight ;
    },
    ...mapGetters(["clientHeight", "iframeHeight"]),
    },
    watch: {},
}
</script>

<style lang='scss' scoped>
   .ql-editor{
    background: #fff;
    margin: 10px 6px;
   }
</style>
