fix(接口测试): 修复包含jsonSchema的数据存为新用例导致页面奔溃的缺陷
https://github.com/metersphere/metersphere/issues/22791
This commit is contained in:
parent
155700dd32
commit
6b09e3b102
|
@ -370,7 +370,7 @@ export default {
|
|||
setOwnEnvironment(scenarioDefinition) {
|
||||
for (let i in scenarioDefinition) {
|
||||
let typeArray = ['JDBCPostProcessor', 'JDBCSampler', 'JDBCPreProcessor'];
|
||||
if (typeArray.indexOf(scenarioDefinition[i].type) !== -1) {
|
||||
if (typeArray.indexOf(scenarioDefinition[i].type) !== -1 && this.currentScenario) {
|
||||
scenarioDefinition[i].currentScenarioId = this.currentScenario.id;
|
||||
}
|
||||
if (scenarioDefinition[i].hashTree && scenarioDefinition[i].hashTree.length > 0) {
|
||||
|
|
|
@ -74,14 +74,6 @@ export default {
|
|||
}
|
||||
this.mock.mock = this.mock.mock + '';
|
||||
},
|
||||
watch: {
|
||||
schema: {
|
||||
handler(newValue, oldValue) {
|
||||
this.schema.mock = this.mock;
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
},
|
||||
mounted() {},
|
||||
methods: {
|
||||
funcSearch(queryString, cb) {
|
||||
|
|
Loading…
Reference in New Issue