index.vue 392 B

12345678910111213141516171819202122232425
  1. <template>
  2. <div>看过我</div>
  3. </template>
  4. <script setup>
  5. import { ref } from 'vue'
  6. import { getInterestedMePage } from '@/api/user'
  7. const queryParams = ref({
  8. pageNo: 1,
  9. pageSize: 10
  10. })
  11. const list = ref([])
  12. const getList = async () => {
  13. const { data } = await getInterestedMePage(queryParams.value)
  14. list.value = data
  15. }
  16. getList()
  17. </script>
  18. <style scoped lang="scss">
  19. </style>