<template>
  <div class="zhanshi">
    <h1 style="font-size: 30px;margin: 0 auto; color:orange;">{{this.formData.title}}</h1>
    <div style="font-size: 20px;" v-html="this.formData.content">
      {{this.formData.content}}
    </div>
  </div>
</template>

<script type="text/javascript">
export default {
  data() {
    return {
       id: 8,
       formData: {}
    };
  },
  created() {
    this.loadData();
  },
  methods: {
    async loadData() {
      const response = await this.$http.get(`app/newsArticle/5`);
      if (response.data.code === 1) {
        this.loading = false;
        // console.log(response.data)
        this.formData = response.data.responseData;
        // console.log(response.data.responseData);
      }
    },

  }
};
</script>

<style type="text/css">

</style>
