提交 0b044758 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 0642f1dd
...@@ -106,7 +106,7 @@ export function useUser() { ...@@ -106,7 +106,7 @@ export function useUser() {
const userValue = ref(me?.sso_id) const userValue = ref(me?.sso_id)
async function fetchUserList() { async function fetchUserList() {
const res = await getUserList() const res = await getUserList()
let { me, students, teachers } = res.data.items let { me, students = [], teachers = [] } = res.data.items
me = { ...me, role: 'me' } me = { ...me, role: 'me' }
students = students.map((item: any) => { students = students.map((item: any) => {
return { ...item, role: 'student' } return { ...item, role: 'student' }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论