fix:projectId

This commit is contained in:
wenyann 2021-03-24 18:58:26 +08:00
parent ad5346d7e8
commit 22d437cc85
1 changed files with 3 additions and 3 deletions

View File

@ -404,7 +404,7 @@ export default {
type: String
},
computed: {
projectId() {
projectIds() {
return this.$store.state.projectId
},
},
@ -455,7 +455,7 @@ export default {
},
getTestOptions(val) {
this.form.type = val
this.projectId = this.projectId
this.projectId = this.projectIds
this.testOptions = [];
let url = '';
if (this.form.type === 'testcase' || this.form.type === 'automation') {
@ -556,7 +556,7 @@ export default {
/*
this.form.selected=[["automation", "3edaaf31-3fa4-4a53-9654-320205c2953a"],["automation", "3aa58bd1-c986-448c-8060-d32713dbd4eb"]]
*/
this.projectId = this.projectId;
this.projectId = this.projectIds;
if (window.history && window.history.pushState) {
history.pushState(null, null, document.URL);
window.addEventListener('popstate', this.close);