yingyangdetail.vue 659 字节
<template>
  <div class="containerbox"></div>
</template>

<script>
export default {
  data() {
    return {
      id: ''
    }
  },
  methods: {
    getdetail() {
      let that = this;
      var url = "/api/index/knowledge_detail";
      let param = {
        id: that.id
      };

      that.$axios
        .post(url, param)
        .then(function (res) {
          console.log(res);

        })
        .catch(function (err) {
          console.log(err);
        });
    }

  },
  created() {
    this.id = this.$route.query.id;
    this.getdetail()
  }

}
</script>

<style scoped>
.containerbox {
  padding: 0.32rem;
  box-sizing: border-box;
}
</style>