From 67724f2fa65d6a5e40eaf8121bda8b980c3ff8bb Mon Sep 17 00:00:00 2001
From: archer <545436317@qq.com>
Date: Tue, 25 Jul 2023 16:14:03 +0800
Subject: [PATCH] fix: tag
---
client/src/pages/kb/detail/components/Info.tsx | 4 ++--
client/src/pages/kb/list/index.tsx | 12 +++++++-----
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/client/src/pages/kb/detail/components/Info.tsx b/client/src/pages/kb/detail/components/Info.tsx
index d4df7d5c7..b68442ed0 100644
--- a/client/src/pages/kb/detail/components/Info.tsx
+++ b/client/src/pages/kb/detail/components/Info.tsx
@@ -215,7 +215,7 @@ const Info = (
setRefresh(!refresh);
}}
/>
-
+
{getValues('tags')
.split(' ')
.filter((item) => item)
@@ -224,7 +224,7 @@ const Info = (
{item}
))}
-
+
diff --git a/client/src/pages/kb/list/index.tsx b/client/src/pages/kb/list/index.tsx
index 16aa4e24a..12fbe0c7f 100644
--- a/client/src/pages/kb/list/index.tsx
+++ b/client/src/pages/kb/list/index.tsx
@@ -132,11 +132,13 @@ const Kb = () => {
/>
- {kb.tags.map((tag, i) => (
-
- {tag}
-
- ))}
+
+ {kb.tags.map((tag, i) => (
+
+ {tag}
+
+ ))}
+
))}