fix(场景自动化): 修复JSON-SCHEMA插件取值问题。

This commit is contained in:
fit2-zhao 2021-05-12 09:28:59 +08:00 committed by fit2-zhao
parent 3e839b221d
commit d4a55d124f
2 changed files with 17 additions and 0 deletions

View File

@ -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:

View File

@ -47,6 +47,14 @@
this.$delete(this.schema, 'mock')
}
},
watch: {
schema: {
handler(newValue, oldValue) {
this.schema.mock = this.mock;
},
deep: true
}
},
mounted() {
},
methods: {