Fix dialog header component error (#1221)

This commit is contained in:
Chenlei Hu
2024-10-11 11:55:13 -04:00
committed by GitHub
parent d787c21f8b
commit 6c696cddb9

View File

@@ -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 || {}