From 682182cf67a5aa9fed34335fea22d4673f30f10c Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期一, 04 九月 2023 11:59:44 +0800
Subject: [PATCH] 小程序

---
 minipro_standard/pages/login/login.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/minipro_standard/pages/login/login.vue b/minipro_standard/pages/login/login.vue
index 8446015..46d088a 100644
--- a/minipro_standard/pages/login/login.vue
+++ b/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)

--
Gitblit v1.9.3