refactor: 初始化vuex清除projectId
This commit is contained in:
parent
f80f6c74d1
commit
8c10f3d5b4
|
@ -64,6 +64,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
init: function () {
|
init: function () {
|
||||||
|
this.$store.commit('setProjectId', undefined);
|
||||||
if (hasRoles(ROLE_TEST_VIEWER, ROLE_TEST_USER, ROLE_TEST_MANAGER)) {
|
if (hasRoles(ROLE_TEST_VIEWER, ROLE_TEST_USER, ROLE_TEST_MANAGER)) {
|
||||||
this.result = this.$get("/project/listAll", response => {
|
this.result = this.$get("/project/listAll", response => {
|
||||||
this.items = response.data;
|
this.items = response.data;
|
||||||
|
|
Loading…
Reference in New Issue