Skip to content

Commit

Permalink
fix: member avatar be extrusion
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Feb 16, 2023
1 parent 3a2aab1 commit 11bc7ba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ import { MemberService } from './member.service';
<nz-list-item-meta>
<nz-list-item-meta-title>
<div class="flex items-center">
<nz-avatar [nzShape]="'square'" [nzSize]="40" nzText="{{ (item.username || item.email)?.at(0) }}" class="mr-[10px]"></nz-avatar>
<nz-avatar
[nzShape]="'square'"
[nzSize]="40"
nzText="{{ (item.username || item.email)?.at(0) }}"
class="mr-[10px] flex-none"
></nz-avatar>
<div class="flex flex-col">
<span class="font-bold link">{{ item.username }}</span>
<span class="text-tips">{{ item.email || item.mobilePhone }}</span>
Expand Down
8 changes: 6 additions & 2 deletions src/workbench/browser/src/app/shared/services/mock.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,19 @@ export class MockService {
}
}

async batchMatchApiData(projectID = 1, req) {
const [data] = await this.apiServiece.api_apiDataList({ pageSize: 200, statuses: [0] });
async batchMatchApiData(projectID = 1, req, page = 1) {
const pageSize = 200;
const [data] = await this.apiServiece.api_apiDataList({ page, pageSize, statuses: [0] });
let result;
for (const api of data.items) {
result = await this.matchApiData(api, req);
if (result?.statusCode !== 404) {
return result;
}
}
if (data.paginator?.total > page * pageSize && result?.statusCode === 404) {
return this.batchMatchApiData(projectID, req, page + 1);
}
return result;
}

Expand Down

0 comments on commit 11bc7ba

Please sign in to comment.