mirror of
https://github.com/certd/certd.git
synced 2026-04-03 14:10:54 +08:00
chore: 1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user