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