From e85c47744cf740b4af3b93dca7c2f0ccc818ec2f Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Thu, 10 Oct 2024 14:57:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E7=BC=96=E8=BE=91=E5=85=B6=E4=BB=96=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E4=BB=BB=E5=8A=A1=E6=97=B6=E5=BD=92?= =?UTF-8?q?=E5=B1=9Euserid=E4=B9=9F=E8=A2=AB=E4=BF=AE=E6=94=B9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/pipeline/controller/pipeline-controller.ts | 3 ++- .../src/plugins/plugin-woai/plugins/plugin-deploy-to-cdn.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ui/certd-server/src/modules/pipeline/controller/pipeline-controller.ts b/packages/ui/certd-server/src/modules/pipeline/controller/pipeline-controller.ts index f485679b..c6cd8b4e 100644 --- a/packages/ui/certd-server/src/modules/pipeline/controller/pipeline-controller.ts +++ b/packages/ui/certd-server/src/modules/pipeline/controller/pipeline-controller.ts @@ -62,9 +62,10 @@ export class PipelineController extends CrudController { @Post('/save', { summary: Constants.per.authOnly }) async save(@Body(ALL) bean: PipelineEntity) { - bean.userId = this.getUserId(); if (bean.id > 0) { await this.authService.checkEntityUserId(this.ctx, this.getService(), bean.id); + } else { + bean.userId = this.getUserId(); } await this.service.save(bean); return this.ok(bean.id); diff --git a/packages/ui/certd-server/src/plugins/plugin-woai/plugins/plugin-deploy-to-cdn.ts b/packages/ui/certd-server/src/plugins/plugin-woai/plugins/plugin-deploy-to-cdn.ts index eaa4110f..680683c3 100644 --- a/packages/ui/certd-server/src/plugins/plugin-woai/plugins/plugin-deploy-to-cdn.ts +++ b/packages/ui/certd-server/src/plugins/plugin-woai/plugins/plugin-deploy-to-cdn.ts @@ -26,7 +26,7 @@ export class WoaiCdnPlugin extends AbstractTaskPlugin { title: '域名证书', helper: '请选择前置任务输出的域名证书', component: { - name: 'pi-output-selector', + name: 'output-selector', from: ['CertApply', 'CertApplyLego'], }, required: true, @@ -36,7 +36,7 @@ export class WoaiCdnPlugin extends AbstractTaskPlugin { title: 'Access授权', helper: '我爱云的用户、密码授权', component: { - name: 'pi-access-selector', + name: 'access-selector', type: 'woai', }, required: true,