浏览代码

bug 修复

lilei 4 年之前
父节点
当前提交
e6aa3f0e42
共有 1 个文件被更改,包括 8 次插入3 次删除
  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'