Don't fetch data during logout

This commit is contained in:
Harikrishna Patnala 2023-10-10 14:15:58 +05:30
parent c0128e2f9a
commit 0f81a142a6
1 changed files with 3 additions and 1 deletions

View File

@ -143,7 +143,9 @@ export default {
if (newValue && newValue.id && (!oldValue || newValue.id !== oldValue.id)) {
this.fetchData()
} else if (store.getters.userInfo.roletype !== 'Admin') {
this.fetchData()
if (!store.getters.logoutFlag) {
this.fetchData()
}
}
}
)