File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ export default defineComponent({
84
84
const route = $nuxt ?.$route || $nuxt ?._route
85
85
const { mdc } = $nuxt ?.$config ?.public || {}
86
86
87
- const tags = {
87
+ const tags = computed (() => ( {
88
88
... (mdc ?.components ?.prose && props .prose !== false ? proseComponentMap : {}),
89
89
... (mdc ?.components ?.map || {}),
90
90
... toRaw (props .data ?.mdc ?.components || {}),
91
91
... props .components
92
- }
92
+ }))
93
93
94
94
const contentKey = computed (() => {
95
95
const components = (props .body ?.children || [])
@@ -107,7 +107,7 @@ export default defineComponent({
107
107
Object .assign (runtimeData , newData )
108
108
})
109
109
110
- await resolveContentComponents (props .body , { tags })
110
+ await resolveContentComponents (props .body , { tags: tags . value })
111
111
112
112
function updateRuntimeData(code : string , value : any ) {
113
113
const lastIndex = code .split (' .' ).length - 1
You can’t perform that action at this time.
0 commit comments