Skip to content

Commit 07ee09c

Browse files
committed
fix: Imported tool create
1 parent be4f0ff commit 07ee09c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/src/views/tool/component/ToolListContainer.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,13 @@ function importTool(file: any) {
560560
.then(async (res: any) => {
561561
if (res?.data) {
562562
tool.setToolList([])
563-
getList()
563+
return user.profile()
564564
}
565565
})
566+
.then(() => {
567+
getList()
568+
569+
})
566570
.catch((e: any) => {
567571
if (e.code === 400) {
568572
MsgConfirm(t('common.tip'), t('views.application.tip.professionalMessage'), {

0 commit comments

Comments
 (0)