Skip to content

Commit

Permalink
fix: fix select api item
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Oct 23, 2023
1 parent 86d24cb commit bf0b845
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ExDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ const ImportEditor = defineComponent({
});
}

// 如果只有一个,则选中导入的配置
if (topIDList.length === 1) {
apiSettingStore.select(topIDList[0]);
}
// 重新加载数据,触发页面刷新
await apiFolderStore.fetch(props.collection);
await apiSettingStore.fetch(props.collection);
await useEnvironmentStore().fetch(props.collection);
message.info(i18nCollection("importSuccess"));
// 如果只有一个,则选中导入的配置
if (topIDList.length === 1) {
apiSettingStore.select(topIDList[0]);
}

if (props.onConfirm) {
props.onConfirm();
Expand Down

0 comments on commit bf0b845

Please sign in to comment.