refactor: 初始化vuex清除projectId

This commit is contained in:
chenjianxing 2021-03-24 22:25:59 +08:00
parent f80f6c74d1
commit 8c10f3d5b4
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ export default {
},
methods: {
init: function () {
this.$store.commit('setProjectId', undefined);
if (hasRoles(ROLE_TEST_VIEWER, ROLE_TEST_USER, ROLE_TEST_MANAGER)) {
this.result = this.$get("/project/listAll", response => {
this.items = response.data;