fix: editor don't has contentComponent attribute when suggestion onUpdate (#2916)
Co-authored-by: 周洋 <yang.zhou02@mihoyo.com>
This commit is contained in:
@@ -21,7 +21,7 @@ export class VueRenderer {
|
|||||||
|
|
||||||
// prevents `Avoid mutating a prop directly` error message
|
// prevents `Avoid mutating a prop directly` error message
|
||||||
// Fix: `VueNodeViewRenderer` change vue Constructor `config.silent` not working
|
// Fix: `VueNodeViewRenderer` change vue Constructor `config.silent` not working
|
||||||
const currentVueConstructor = this.ref.$props.editor.contentComponent?.$options._base ?? Vue // eslint-disable-line
|
const currentVueConstructor = this.ref.$props.editor?.contentComponent?.$options._base ?? Vue // eslint-disable-line
|
||||||
const originalSilent = currentVueConstructor.config.silent
|
const originalSilent = currentVueConstructor.config.silent
|
||||||
|
|
||||||
currentVueConstructor.config.silent = true
|
currentVueConstructor.config.silent = true
|
||||||
|
|||||||
Reference in New Issue
Block a user