fix: 修复已邀请用户列表无法显示的问题
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -41,4 +41,3 @@ coverage.html
|
|||||||
|
|
||||||
# 开发文档
|
# 开发文档
|
||||||
document/
|
document/
|
||||||
database_schema.md
|
|
||||||
@@ -15,7 +15,7 @@ export interface Invitation {
|
|||||||
|
|
||||||
export interface InvitationsResponse {
|
export interface InvitationsResponse {
|
||||||
success: boolean
|
success: boolean
|
||||||
invitations?: Invitation[]
|
data?: Invitation[]
|
||||||
message?: string
|
message?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -77,8 +77,8 @@ async function loadInvitations() {
|
|||||||
loading.value = true
|
loading.value = true
|
||||||
try {
|
try {
|
||||||
const response = await listInvitations(accountId.value)
|
const response = await listInvitations(accountId.value)
|
||||||
if (response.data.success && response.data.invitations) {
|
if (response.data.success && response.data.data) {
|
||||||
invitations.value = response.data.invitations
|
invitations.value = response.data.data
|
||||||
} else {
|
} else {
|
||||||
toast.error(response.data.message || '获取邀请列表失败')
|
toast.error(response.data.message || '获取邀请列表失败')
|
||||||
}
|
}
|
||||||
@@ -147,9 +147,11 @@ function goToPage(page: number) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePageSizeChange(value: string) {
|
function handlePageSizeChange(value: any) {
|
||||||
pageSize.value = Number(value)
|
if (value) {
|
||||||
currentPage.value = 1
|
pageSize.value = Number(value)
|
||||||
|
currentPage.value = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -191,9 +191,11 @@ function goToPage(page: number) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePageSizeChange(value: string) {
|
function handlePageSizeChange(value: any) {
|
||||||
pageSize.value = Number(value)
|
if (value) {
|
||||||
currentPage.value = 1
|
pageSize.value = Number(value)
|
||||||
|
currentPage.value = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user