@fe-free/core 3.0.43 → 3.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +3 -3
- package/src/markdown/knowledge_ref.tsx +1 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fe-free/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.44",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"author": "",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"antd": "^5.27.1",
|
|
47
47
|
"dayjs": "~1.11.10",
|
|
48
48
|
"react": "^19.2.0",
|
|
49
|
-
"@fe-free/icons": "3.0.
|
|
50
|
-
"@fe-free/tool": "3.0.
|
|
49
|
+
"@fe-free/icons": "3.0.44",
|
|
50
|
+
"@fe-free/tool": "3.0.44"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -13,9 +13,8 @@ function KnowledgeRefBlock(props: any) {
|
|
|
13
13
|
if (id) {
|
|
14
14
|
const index = knowledgeRefs?.findIndex((ref: { id: string }) => ref.id === id);
|
|
15
15
|
|
|
16
|
-
console.log('index', index);
|
|
17
16
|
// 没有数据的时候显示 id
|
|
18
|
-
if (index === -1) {
|
|
17
|
+
if (index === -1 || index === undefined) {
|
|
19
18
|
return <span>[{id}]</span>;
|
|
20
19
|
}
|
|
21
20
|
|