index.vue 341 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <div>
  3. 首页
  4. </div>
  5. </template>
  6. <script>
  7. import {
  8. Domestic,
  9. } from '../../api/user.js';
  10. export default {
  11. onLoad() {
  12. getList();
  13. },
  14. data() {
  15. return {
  16. }
  17. },
  18. methods:{
  19. getList () {
  20. Domestic().then(res => {
  21. console.log(res,'res')
  22. })
  23. }
  24. }
  25. }
  26. </script>
  27. <style>
  28. </style>