feat: 微信登录获取openid

This commit is contained in:
Burt
2024-01-20 18:21:42 +08:00
parent 6a0de23432
commit 70b74eb3cb
5 changed files with 27 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import { UserInfo } from '../typings'
export const useUserStore = defineStore(
'user',
() => {
const userInfo = ref<UserInfo>()
const userInfo = ref<UserInfo>({ nickname: '', avatar: '' })
const setUserInfo = (val: UserInfo) => {
userInfo.value = val