|
|
@@ -147,7 +147,13 @@
|
|
|
switchEnterprise (en) {
|
|
|
this.showEnterpriseToggle = false
|
|
|
this.$http.get(`/user/authentication/${en.uu}`).then(() => {
|
|
|
- this.$store.dispatch('loadUserInfo')
|
|
|
+ this.$store.dispatch('loadUserInfo').then(() => {
|
|
|
+ if (this.userType === 'saler') {
|
|
|
+ this.$router.push('/mobile/user?type=buyer')
|
|
|
+ } else {
|
|
|
+ this.reloadData()
|
|
|
+ }
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
setShowEnterpriseToggle (flag, e) {
|