fix(场景自动化): 修复JSON-SCHEMA插件取值问题。
This commit is contained in:
parent
3e839b221d
commit
d4a55d124f
|
@ -21,6 +21,7 @@
|
||||||
<script>
|
<script>
|
||||||
import {schemaToJson} from './common';
|
import {schemaToJson} from './common';
|
||||||
import MsImportJson from './import/ImportJson';
|
import MsImportJson from './import/ImportJson';
|
||||||
|
|
||||||
const Convert = require('./convert/convert.js');
|
const Convert = require('./convert/convert.js');
|
||||||
const MsConvert = new Convert();
|
const MsConvert = new Convert();
|
||||||
|
|
||||||
|
@ -40,6 +41,14 @@
|
||||||
}
|
}
|
||||||
this.body.jsonSchema = this.schema.root;
|
this.body.jsonSchema = this.schema.root;
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
schema: {
|
||||||
|
handler(newValue, oldValue) {
|
||||||
|
this.body.jsonSchema = this.schema.root;
|
||||||
|
},
|
||||||
|
deep: true
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
schema:
|
schema:
|
||||||
|
|
|
@ -47,6 +47,14 @@
|
||||||
this.$delete(this.schema, 'mock')
|
this.$delete(this.schema, 'mock')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
schema: {
|
||||||
|
handler(newValue, oldValue) {
|
||||||
|
this.schema.mock = this.mock;
|
||||||
|
},
|
||||||
|
deep: true
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in New Issue