Skip to content

Commit

Permalink
Fix invitee page (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
崔庆才丨静觅 authored Jan 7, 2024
1 parent 62ac280 commit a8d1d6c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix invitee page",
"packageName": "@zhishuyun/hub",
"email": "[email protected]",
"dependentChangeType": "patch"
}
1 change: 1 addition & 0 deletions src/operators/user/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { IUserDetailResponse, IUser, IUserListResponse } from './models';
export interface IInviteesQuery {
offset?: number;
limit?: number;
ordering?: string;
}

class UserOperator {
Expand Down
5 changes: 3 additions & 2 deletions src/pages/distribution/Invitees.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<span class="description">{{ scope.row.nickname }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('user.field.isVerified')" width="100px">
<el-table-column :label="$t('user.field.isVerified')">
<template #default="scope">
<el-switch :model-value="scope.row?.is_verified" />
</template>
Expand Down Expand Up @@ -123,7 +123,8 @@ export default defineComponent({
async onFetchInvitees() {
const { data } = await userOperator.getInvitees({
limit: this.limit,
offset: (this.page - 1) * this.limit
offset: (this.page - 1) * this.limit,
ordering: '-created_at'
});
this.invitees = data.items;
this.total = data.count;
Expand Down
2 changes: 1 addition & 1 deletion src/router/distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
{
path: 'invitees',
name: ROUTE_DISTRIBUTION_INVITEES,
component: () => import('@/pages/distribution/History.vue')
component: () => import('@/pages/distribution/Invitees.vue')
}
]
};

0 comments on commit a8d1d6c

Please sign in to comment.