This commit is contained in:
xiaojunnuo
2026-01-07 10:58:17 +08:00
parent 468ccbf2b7
commit 66d8cafd76
3 changed files with 13 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
解决方法如下:
## 1. 修改环境变量
docker部署的
修改docker-compose.yaml文件将环境变量`certd_system_resetAdminPasswd`改为`true`
```yaml
services:
@@ -9,6 +11,13 @@ services:
environment: # 环境变量
- certd_system_resetAdminPasswd=true
```
源码部署的,修改`packages/ui/certd-server/.env`文件
```ini
certd_system_resetAdminPasswd=true
```
## 2. 重启容器
```shell
docker compose up -d

View File

@@ -1,3 +1,4 @@
//@ts-ignore
import { request } from "/src/api/service";
// import "/src/mock";
import { ColumnCompositionProps, CrudOptions, FastCrud, PageQuery, PageRes, setLogger, TransformResProps, useColumns, UseCrudProps, UserPageQuery, useTypes, utils, forEachTableColumns } from "@fast-crud/fast-crud";
@@ -322,6 +323,7 @@ function install(app: App, options: any = {}) {
app.use(FsExtendsTime);
app.use(FsExtendsCopyable);
app.use(FsExtendsInput);
//@ts-ignore
app.use(FsEditorCode);
const { addTypes, getType } = useTypes();

View File

@@ -133,7 +133,8 @@ export class PipelineController extends CrudController<PipelineService> {
async disabled(@Body(ALL) bean) {
await this.authService.checkEntityUserId(this.ctx, this.getService(), bean.id);
delete bean.userId;
return this.service.disabled(bean.id, bean.disabled);
await this.service.disabled(bean.id, bean.disabled);
return this.ok({});
}
@Post('/detail', { summary: Constants.per.authOnly })