Skip to content

Commit b356e66

Browse files
committed
fix: initial value for vue2
1 parent d9dc6f8 commit b356e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vue-components/src/components/Editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default {
109109
}
110110

111111
this.editor = monaco.editor.create(this.$el, {
112-
value: this.modelValue,
112+
value: this.modelValue || this.value,
113113
language: this.language,
114114
theme: this.theme,
115115
...this.options,

0 commit comments

Comments
 (0)