Mr.Shi
2023-09-04 682182cf67a5aa9fed34335fea22d4673f30f10c
minipro_standard/pages/login/login.vue
@@ -49,7 +49,7 @@
                           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'
@@ -71,6 +71,7 @@
            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)