New file |
| | |
| | | <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> |
New file |
| | |
| | | <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> |