linwenling
2023-05-25 adbcf8cae1885a88d68079ef6df085aa19c858de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
  <div>
    adsafasdfasdfasdfsdf
  </div>
</template>
 
<script>
import {getRoot} from "@/api/root/index";
  export default {
    name: "index",
    data(){
      return{
        personInfos:[]
        }
    }
  ,
  mounted() {
        const id = this.$route.params && this.$route.params.id;
     this.getList(id);
  },
  methods:{
    getList(id)
    {
    //  alert(id)
      getRoot(id).then(response => {
        console.log(response.data)
        //这里是夫妻的信息,已经拿到了
        this.personInfos = response.data
    })
    }
  },
  }
</script>
 
<style>
</style>