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