<template>
<h1>列表</h1>
<el-table :data="items">
<el-table-column prop="data._id" label="ID" width="220"></el-table-column>
<el-table-column prop="username" label="用户名"></el-table-column>
<el-table-column prop="password" label="密码"></el-table-column>
</el-table>
</template>
<script setup lang='ts'>
import { ref } from 'vue';
import { getAdminUser } from '../../util/api'
let items = ref()
items.value = await getAdminUser('/adminusers')
console.log(items.value);
</script>
<style lang="sass" scoped>
</style>
还有就是这个热更新提示的这个是啥意思?
Cannot access 'userList' before initialization