This commit is contained in:
chenjianxing 2020-07-21 00:48:24 +08:00
commit a52e45cc20
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -103,7 +103,7 @@
} }
}, },
runTest() { runTest() {
this.result = this.$post(this.runPath, {id: this.test.id}, (response) => { this.result = this.$post(this.runPath, {id: this.test.id, triggerMode: 'MANUAL'}, (response) => {
this.$success(this.$t('load_test.is_running')); this.$success(this.$t('load_test.is_running'));
this.$emit('runTest', response.data); this.$emit('runTest', response.data);
}); });