This commit is contained in:
ljw
2024-09-13 16:34:15 +08:00
commit 364064e5ce
62 changed files with 8448 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import { ref, reactive, watch } from 'vue'
import { list as fetchUsers } from '@/api/user'
export function loadAllUsers () {
const allUsers = ref([])
const getAllUsers = async () => {
const res = await fetchUsers({ page_size: 9999 }).catch(_ => false)
if (res) {
allUsers.value = res.data.list
}
}
return {
allUsers,
getAllUsers,
}
}