//父传子
<template>
<div>
<div>用户管理</div>
<div v-for="item in state.dataLlst" :key="item.id">{
{ item.name }}</div>
<detail :dataList="state.datalist" :count="count"></detail>
</div>
</template>
<script setup>
import {
getuserListApi } from "@/api/user";
import {
reactive, onMounted, ref, toRefs, nextTick } from "vue";
import detail from "@/views/user/detail.vue";
let count =ref(10)
let state = reactive({
datalist: [],
});
onMounted(() => {
getData();