Add auto publish to tool management

This commit is contained in:
2024-02-04 01:56:17 +08:00
parent 522347060c
commit 524b57ed8b
4 changed files with 117 additions and 34 deletions

View File

@@ -370,7 +370,6 @@ const Tools = () => {
switch (response.code) {
case TOOL_CANCEL_SUCCESS:
void message.success('取消审核成功')
getTool()
break
case TOOL_NOT_UNDER_REVIEW:
void message.warning('工具非审核状态')
@@ -384,6 +383,7 @@ const Tools = () => {
})
.finally(() => {
setLoading(false)
getTool()
})
}
},