File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
docSite/content/zh-cn/docs/guide/knowledge_base
packages/global/common/parentFolder
projects/app/src/pageComponents/dataset/detail/Import/diffSource Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ type ResponseType = {
43
43
// 文件列表中,单项的文件类型
44
44
type FileListItem = {
45
45
id: string ;
46
- parentId: string | null ;
46
+ parentId: string | null | undefined ;
47
47
name: string ;
48
48
type: ' file' | ' folder' ;
49
49
updateTime: Date ;
@@ -59,7 +59,7 @@ type FileListItem = {
59
59
{{< markdownify >}}
60
60
61
61
{{% alert icon=" " context="success" %}}
62
- - parentId - 父级 id,可选,或者 null。
62
+ - parentId - 父级 id,可选,或者 null | undefined 。
63
63
- searchKey - 检索词,可选
64
64
{{% /alert %}}
65
65
@@ -68,7 +68,7 @@ curl --location --request POST '{{baseURL}}/v1/file/list' \
68
68
--header ' Authorization: Bearer {{authorization}}' \
69
69
--header ' Content-Type: application/json' \
70
70
--data -raw ' {
71
- " parentId" : null ,
71
+ " parentId" : " " ,
72
72
" searchKey" : " "
73
73
}'
74
74
```
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export type GetPathProps = {
4
4
} ;
5
5
6
6
export type ParentTreePathItemType = {
7
- parentId : string | null ;
7
+ parentId : ParentIdType ;
8
8
parentName : string ;
9
9
} ;
10
10
export type ParentIdType = string | null | undefined ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const CustomAPIFileInput = () => {
48
48
49
49
const [ selectFiles , setSelectFiles ] = useState < APIFileItem [ ] > ( [ ] ) ;
50
50
const [ parent , setParent ] = useState < ParentTreePathItemType > ( {
51
- parentId : null ,
51
+ parentId : '' ,
52
52
parentName : ''
53
53
} ) ;
54
54
const [ paths , setPaths ] = useState < ParentTreePathItemType [ ] > ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments