diff --git a/src/stores/dialogStore.ts b/src/stores/dialogStore.ts index 86ba93e32..089f89859 100644 --- a/src/stores/dialogStore.ts +++ b/src/stores/dialogStore.ts @@ -41,7 +41,9 @@ export const useDialogStore = defineStore('dialog', { this.isVisible = true nextTick(() => { this.title = options.title - this.headerComponent = markRaw(options.headerComponent) + this.headerComponent = options.headerComponent + ? markRaw(options.headerComponent) + : null this.component = markRaw(options.component) this.props = options.props || {} this.dialogComponentProps = options.dialogComponentProps || {}