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 type: String
}, },
computed: { computed: {
projectId() { projectIds() {
return this.$store.state.projectId return this.$store.state.projectId
}, },
}, },
@ -455,7 +455,7 @@ export default {
}, },
getTestOptions(val) { getTestOptions(val) {
this.form.type = val this.form.type = val
this.projectId = this.projectId this.projectId = this.projectIds
this.testOptions = []; this.testOptions = [];
let url = ''; let url = '';
if (this.form.type === 'testcase' || this.form.type === 'automation') { 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.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) { if (window.history && window.history.pushState) {
history.pushState(null, null, document.URL); history.pushState(null, null, document.URL);
window.addEventListener('popstate', this.close); window.addEventListener('popstate', this.close);