Fixed initialize bug for customer login

This commit is contained in:
2020-04-02 23:19:18 +00:00
parent c3495a7c0d
commit 3420182a51
2 changed files with 3 additions and 2 deletions

View File

@@ -711,7 +711,8 @@ export default function initialize() {
window.$gz.role.AUTHORIZATION_ROLES.CustomerFull,
window.$gz.role.AUTHORIZATION_ROLES.CustomerLimited
]) &&
(window.$gz.store.userType == 4 || window.$gz.store.userType == 5)
(window.$gz.store.state.userType == 4 ||
window.$gz.store.state.userType == 5)
) {
//clear sublevel array
sub = [];