fix: 接口测试转性能测试时测试名称无法编辑的问题

This commit is contained in:
shiziyuan9527 2020-07-20 21:29:22 +08:00
parent 6ed20d81d6
commit 777027da3b
1 changed files with 2 additions and 2 deletions

View File

@ -126,8 +126,8 @@
importAPITest() {
let apiTest = this.$store.state.api.test;
if (apiTest && apiTest.name) {
this.testPlan.projectId = apiTest.projectId;
this.testPlan.name = apiTest.name;
this.$set(this.testPlan, "projectId", apiTest.projectId);
this.$set(this.testPlan, "name", apiTest.name);
let blob = new Blob([apiTest.jmx.xml], {type: "application/octet-stream"});
let file = new File([blob], apiTest.jmx.name);
this.$refs.basicConfig.beforeUpload(file);