Browse Source

切换账套跳回首页

yangc 8 years ago
parent
commit
4beb99f5bd
1 changed files with 8 additions and 7 deletions
  1. 8 7
      components/default/Header.vue

+ 8 - 7
components/default/Header.vue

@@ -108,13 +108,14 @@
         this.toggleEnterprises()
         this.$http.get(`/user/authentication/${en.uu}`).then(() => {
           this.$store.dispatch('loadUserInfo')
-          let href = window.location.href
-          let hrefPath = href.slice(href.length - 14, href.length)
-          if (hrefPath === 'register-saler' && en.uu !== 0 && en.isVendor === 313) {
-            window.location.href = '/vendor#/index'
-          } else {
-            window.location.reload()
-          }
+//          let href = window.location.href
+//          let hrefPath = href.slice(href.length - 14, href.length)
+//          if (hrefPath === 'register-saler' && en.uu !== 0 && en.isVendor === 313) {
+//            window.location.href = '/vendor#/index'
+//          } else {
+//            window.location.reload()
+//          }
+          window.location.href = '/'
         })
       },
       toVendor: function () {