|
@@ -121,17 +121,18 @@ onMounted(() => {
|
|
|
}, 300);
|
|
|
});
|
|
|
|
|
|
-watch(
|
|
|
- () => modelValue,
|
|
|
- (newValue) => {
|
|
|
- if (editor) {
|
|
|
- const value = editor.getValue();
|
|
|
- if (newValue !== value) {
|
|
|
- editor.setValue(newValue);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-);
|
|
|
+// watch(
|
|
|
+// () => modelValue,
|
|
|
+// (newValue) => {
|
|
|
+// if (editor) {
|
|
|
+// const value = editor.getValue();
|
|
|
+// newValue = json ? JSON.stringify(newValue) : newValue;
|
|
|
+// if (newValue !== value) {
|
|
|
+// editor.setValue(newValue);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+// );
|
|
|
|
|
|
watch(
|
|
|
() => options,
|