princeLee 4 years ago
parent
commit
9a9f55ce5e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/business/bizIdSelect.vue

+ 1 - 1
src/views/business/bizIdSelect.vue

@@ -93,7 +93,7 @@ export default {
       this.$store.dispatch('global/setBizId', biz.code)
       this.$store.dispatch('global/setBizId', biz.code)
       this.$store.dispatch('global/setBizName', biz.name)
       this.$store.dispatch('global/setBizName', biz.name)
       this.settingUserSetBiz(biz.code)
       this.settingUserSetBiz(biz.code)
-      if (!fromRoute || !fromRoute.name) {
+      if (!fromRoute || !fromRoute.name || fromRoute.name === 'notAccess' || fromRoute.name === 'notFound') {
         this.$router.push({ name: '项目', query: { bizId: EncryptId(biz.code) }})
         this.$router.push({ name: '项目', query: { bizId: EncryptId(biz.code) }})
         return
         return
       }
       }