feat: Clear new tag input after successful addition in TagManager

This commit is contained in:
chenghh-9609
2025-10-23 16:05:13 +08:00
parent bb116839ae
commit aba7a3e1fb
2 changed files with 3 additions and 7 deletions

View File

@@ -128,6 +128,7 @@ const TagManager: React.FC = ({
name: tag,
});
fetchTags();
setNewTag("");
message.success("标签添加成功");
} catch (error) {
message.error("添加标签失败");