diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 89a63a0f..a4ccb1fb 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -38,7 +38,7 @@ jobs: with: node-version: 18 cache: 'npm' - - run: | + run: | npm install -g pnpm pnpm install npm run build diff --git a/build.trigger b/build.trigger index d00491fd..0cfbf088 100644 --- a/build.trigger +++ b/build.trigger @@ -1 +1 @@ -1 +2 diff --git a/packages/ui/certd-client/src/mock/base.ts b/packages/ui/certd-client/src/mock/base.ts index 1ddabc6c..a2958101 100644 --- a/packages/ui/certd-client/src/mock/base.ts +++ b/packages/ui/certd-client/src/mock/base.ts @@ -2,7 +2,7 @@ import _ from "lodash-es"; function copyList(originList: any, newList: any, options: any, parentId?: any) { for (const item of originList) { const newItem: any = _.cloneDeep(item); - if(parentId!= null && newItem.parentId == null){ + if (parentId != null && newItem.parentId == null) { newItem.parentId = parentId; } @@ -228,7 +228,7 @@ const mockUtil: any = { handle(req: any): any { const item = findById(req.body.id, list); if (item) { - _.mergeWith(item, req.body, (objValue, srcValue) => { + _.mergeWith(item, req.body, (objValue: any, srcValue: any) => { if (srcValue == null) { return; } @@ -305,7 +305,7 @@ const mockUtil: any = { console.log("req", req); let item = findById(req.body.id, list); if (item) { - _.mergeWith(item, { [req.body.key]: req.body.value }, (objValue, srcValue) => { + _.mergeWith(item, { [req.body.key]: req.body.value }, (objValue: any, srcValue: any) => { if (srcValue == null) { return; } @@ -336,7 +336,7 @@ const mockUtil: any = { for (const item of req.body) { const item2 = findById(item.id, list); if (item2) { - _.mergeWith(item2, item, (objValue, srcValue) => { + _.mergeWith(item2, item, (objValue: any, srcValue: any) => { if (srcValue == null) { return; }