Skip to content

Commit a93b5b5

Browse files
zwx-masterpeacewong
authored andcommitted
readOnly value modification
1 parent c54233d commit a93b5b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dataspherestudio",
3-
"version": "0.5.0",
3+
"version": "0.8.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

web/src/js/component/editor/editor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default {
9191
if (newValue == this.getValue()) {
9292
return;
9393
}
94-
let readOnly = this.editor.getRawOptions().readOnly;
94+
let readOnly = this.currentConfig.readOnly;
9595
if (readOnly) {
9696
// editor.setValue 和 model.setValue 都会丢失撤销栈
9797
this.editor.setValue(newValue);

0 commit comments

Comments
 (0)