fix: refresh cmd palette

This commit is contained in:
DarkPhoenix2704
2023-10-06 12:44:45 +00:00
parent 3924dff71f
commit bfacd80715
9 changed files with 35 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ const { base } = storeToRefs(baseStore)
const _projectId = inject(ProjectIdInj, undefined)
const baseId = computed(() => _projectId?.value ?? base.value?.id)
const { refreshCommandPalette } = useCommandPalette()
const useForm = Form.useForm
const testSuccess = ref(false)
@@ -235,6 +237,8 @@ const editBase = async () => {
emit('close')
} catch (e: any) {
message.error(await extractSdkResponseErrorMsg(e))
} finally {
refreshCommandPalette()
}
}