充值更新

This commit is contained in:
GaoHao
2024-11-18 14:59:20 +08:00
parent bca2b6a3f7
commit 919350c2c0
4 changed files with 71 additions and 34 deletions

View File

@@ -62,7 +62,9 @@ const store = new Vuex.Store({
},
actions: {
loginEvent: async () => {
console.log(2)
let res = await uni.utils.getUserInfo();
console.log(res)
uni.cache.set('token', res.data.token);
uni.cache.set('miniAppOpenId', res.data.userInfo
.miniAppOpenId)