fix(接口测试): 统一接口测试转性能测试时storage带的参数

统一接口测试转性能测试时storage带的参数
This commit is contained in:
song-tianyang 2022-12-28 12:13:30 +08:00 committed by 建国
parent 95ccae7283
commit 7774c79f62
4 changed files with 5 additions and 4 deletions

View File

@ -830,7 +830,7 @@ export default {
}
},
search(projectId) {
this.$EventBus.$emit("scenarioConditionBus", this.condition)
this.$EventBus.$emit('scenarioConditionBus', this.condition);
if (this.needRefreshModule()) {
this.$emit('refreshTree');
}
@ -1533,6 +1533,7 @@ export default {
jmxObjList.push(jmxObj);
});
performanceStore.$patch({
test: null,
scenarioJmxs: {
name: 'Scenarios',
jmxs: jmxObjList,

View File

@ -81,7 +81,7 @@ export default {
jmxObj.caseId = null;
jmxObj.version = row.version;
jmxObj.projectEnvMap = projectEnvMap;
performanceStore.$patch({ test: { name: row.name, jmx: jmxObj } });
performanceStore.$patch({ test: { name: row.name, jmx: jmxObj }, scenarioJmxs: null });
this.$router.push({
path: '/performance/test/create',
});

View File

@ -1437,7 +1437,7 @@ export default {
jmxObj.version = row.version;
jmxObj.envId = environment.id;
jmxObj.projectEnvMap = projectEnvMap;
performanceStore.$patch({ test: { name: row.name, jmx: jmxObj } });
performanceStore.$patch({ test: { name: row.name, jmx: jmxObj }, scenarioJmxs: null });
this.$router.push({
path: '/performance/test/create',
});

View File

@ -138,7 +138,7 @@ export default {
jmxObj.version = row.version;
jmxObj.envId = this.environment;
jmxObj.projectEnvMap = projectEnvMap;
performanceStore.$patch({ test: { name: row.name, jmx: jmxObj } });
performanceStore.$patch({ test: { name: row.name, jmx: jmxObj }, scenarioJmxs: null });
this.$router.push({
path: '/performance/test/create',
});