| | |
| | | let info = await getUserInfo() |
| | | if (info.code === 200) { |
| | | await that.$store.commit('setEntrance', 'WX') |
| | | await that.$store.commit('setUserInfo', info.data) |
| | | await that.$store.commit('SETUSERINFO', info.data) |
| | | await that.$store.dispatch('getMenuList', 2) |
| | | uni.switchTab({ |
| | | url: '/pages/workbench/workbench' |
| | |
| | | if (!this.from.password) return uni.showToast({ title: '密码不能为空', icon:"error", duration: 2000 }); |
| | | let res = await wxAccountLogin(this.from) |
| | | if (res.code === 200) { |
| | | await this.$store.commit('SETSESSION', res.data) |
| | | let user = await getUserInfo({}) |
| | | if (user.code === 200) { |
| | | await this.$store.commit('SETUSERINFO', user.data) |