Browse Source

bug 修复

lilei 4 years ago
parent
commit
e6aa3f0e42
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/views/Home.vue

+ 8 - 3
src/views/Home.vue

@@ -460,10 +460,15 @@ export default {
       } else {
         vm.openResetPwd = true
       }
-      const salesChannelType = vm.authUserInfo.extInfo.channel.salesChannelType
-      if (salesChannelType == 'CHANNEL') { //  渠道商
-        vm.getSalesChannel()
+      console.log(vm.mustChangePwd, 'vm.mustChangePwd')
+      if (vm.authUserInfo.hasOwnProperty('extInfo')) {
+        if (vm.authUserInfo.extInfo.channel.salesChannelType == 'CHANNEL') { //  渠道商
+          vm.getSalesChannel()
+        }
+      } else {
+        vm.$store.dispatch('Logout')
       }
+
       // console.log(vm.mustChangePwd, '-------是否需要重置密码', vm.authUserInfo)
       vm.pageInit()
       vm.curentType = 'thisWeek'