Compare commits

..

3 Commits

Author SHA1 Message Date
Archer
30a89fe4cb fix: list permission (#3386) 2024-12-13 11:00:22 +08:00
Archer
c41def5fbb Fix input (#3385)
* doc

* fix: inputs

* fix: inputs

* fix: inputs

* fix: inputs
2024-12-13 08:28:33 +08:00
Archer
b596976a96 fix: render inputs (#3384) 2024-12-13 08:06:05 +08:00
7 changed files with 18 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ weight: 809
## 升级指南
- 更新 fastgpt 镜像 tag: v4.8.15-fix
- 更新 fastgpt 镜像 tag: v4.8.15-fix2
- 更新 fastgpt-pro 商业版镜像 tag: v4.8.15
- Sandbox 镜像,可以不更新

View File

@@ -121,8 +121,8 @@ services:
restart: always
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.8.15-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix # 阿里云
image: ghcr.io/labring/fastgpt:v4.8.15-fix2 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix2 # 阿里云
ports:
- 3000:3000
networks:

View File

@@ -79,8 +79,8 @@ services:
restart: always
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.8.15-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix # 阿里云
image: ghcr.io/labring/fastgpt:v4.8.15-fix2 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix2 # 阿里云
ports:
- 3000:3000
networks:

View File

@@ -60,8 +60,8 @@ services:
restart: always
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:v4.8.15-fix # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix # 阿里云
image: ghcr.io/labring/fastgpt:v4.8.15-fix2 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix2 # 阿里云
ports:
- 3000:3000
networks:

View File

@@ -101,7 +101,7 @@ async function handler(req: ApiRequestProps<ListAppBody>): Promise<AppListItemTy
? {
$or: [idList, parseParentIdInMongo(parentId)]
}
: idList;
: { $or: [idList, { parentId: null }] };
const searchMatch = searchKey
? {

View File

@@ -82,7 +82,7 @@ async function handler(req: ApiRequestProps<GetDatasetListBody>) {
? {
$or: [idList, parseParentIdInMongo(parentId)]
}
: idList;
: { $or: [idList, { parentId: null }] };
const searchMatch = searchKey
? {

View File

@@ -85,15 +85,19 @@ type Props = {
const RenderInput = ({ flowInputList, nodeId, CustomComponent, mb = 5 }: Props) => {
const { feConfigs } = useSystemStore();
const filterInputs = useMemo(() => {
const filterProInputs = useMemo(() => {
return flowInputList.filter((input) => {
if (input.isPro && !feConfigs?.isPlus) return false;
return true;
});
}, [feConfigs?.isPlus, flowInputList]);
const filterInputs = useMemo(() => {
return filterProInputs.filter((input) => {
const renderType = input.renderTypeList?.[input.selectedTypeIndex || 0];
if (renderType === FlowNodeInputTypeEnum.hidden) return false;
const isDynamic = !!input.canEdit;
if (isDynamic) return false;
if (renderType === FlowNodeInputTypeEnum.hidden || isDynamic) return false;
return true;
});
@@ -112,7 +116,7 @@ const RenderInput = ({ flowInputList, nodeId, CustomComponent, mb = 5 }: Props)
const Component = RenderList.find((item) => item.types.includes(renderType))?.Component;
if (!Component) return null;
return <Component inputs={filterInputs} item={input} nodeId={nodeId} />;
return <Component inputs={filterProInputs} item={input} nodeId={nodeId} />;
})();
return (