mirror of
https://github.com/certd/certd.git
synced 2026-05-18 22:57:31 +08:00
chore: 1
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
解决方法如下:
|
解决方法如下:
|
||||||
|
|
||||||
## 1. 修改环境变量
|
## 1. 修改环境变量
|
||||||
|
|
||||||
|
docker部署的:
|
||||||
修改docker-compose.yaml文件,将环境变量`certd_system_resetAdminPasswd`改为`true`
|
修改docker-compose.yaml文件,将环境变量`certd_system_resetAdminPasswd`改为`true`
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
@@ -9,6 +11,13 @@ services:
|
|||||||
environment: # 环境变量
|
environment: # 环境变量
|
||||||
- certd_system_resetAdminPasswd=true
|
- certd_system_resetAdminPasswd=true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
源码部署的,修改`packages/ui/certd-server/.env`文件
|
||||||
|
|
||||||
|
```ini
|
||||||
|
certd_system_resetAdminPasswd=true
|
||||||
|
```
|
||||||
|
|
||||||
## 2. 重启容器
|
## 2. 重启容器
|
||||||
```shell
|
```shell
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//@ts-ignore
|
||||||
import { request } from "/src/api/service";
|
import { request } from "/src/api/service";
|
||||||
// import "/src/mock";
|
// import "/src/mock";
|
||||||
import { ColumnCompositionProps, CrudOptions, FastCrud, PageQuery, PageRes, setLogger, TransformResProps, useColumns, UseCrudProps, UserPageQuery, useTypes, utils, forEachTableColumns } from "@fast-crud/fast-crud";
|
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(FsExtendsTime);
|
||||||
app.use(FsExtendsCopyable);
|
app.use(FsExtendsCopyable);
|
||||||
app.use(FsExtendsInput);
|
app.use(FsExtendsInput);
|
||||||
|
//@ts-ignore
|
||||||
app.use(FsEditorCode);
|
app.use(FsEditorCode);
|
||||||
|
|
||||||
const { addTypes, getType } = useTypes();
|
const { addTypes, getType } = useTypes();
|
||||||
|
|||||||
@@ -133,7 +133,8 @@ export class PipelineController extends CrudController<PipelineService> {
|
|||||||
async disabled(@Body(ALL) bean) {
|
async disabled(@Body(ALL) bean) {
|
||||||
await this.authService.checkEntityUserId(this.ctx, this.getService(), bean.id);
|
await this.authService.checkEntityUserId(this.ctx, this.getService(), bean.id);
|
||||||
delete bean.userId;
|
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 })
|
@Post('/detail', { summary: Constants.per.authOnly })
|
||||||
|
|||||||
Reference in New Issue
Block a user