完成用户登录和全局token

This commit is contained in:
2025-08-11 00:40:21 +08:00
parent f7261e1915
commit 1cc9bfb8ab
15 changed files with 167 additions and 30 deletions

3
typings/index.d.ts vendored
View File

@@ -2,7 +2,8 @@
interface IAppOption {
globalData: {
userInfo?: WechatMiniprogram.UserInfo,
userInfo?: WechatMiniprogram.CustomUserInfo | null,
token: string
}
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
}