整合获取用户登录信息

This commit is contained in:
aixianling
2022-06-29 18:15:53 +08:00
parent 2655a44573
commit 13567fcb3d
4 changed files with 13 additions and 12 deletions

View File

@@ -69,7 +69,7 @@ export default {
}).then(res => {
if (res.code == 0) {
if (res.data == 2 || res.data == 0) {
this.$store.commit('getUserInfo')
this.$store.dispatch('getUserInfo')
uni.redirectTo({
url: `./authSuccess?status=${res.data}`, success: () => {
if (res.data == 0) {