project:强制覆盖代码,更新.gitignore文件内容

This commit is contained in:
2025-09-16 17:23:51 +08:00
parent ab9a7279f5
commit 5ad77a857c
97 changed files with 2295 additions and 1751 deletions
+14 -6
View File
@@ -8,19 +8,19 @@
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: async function() {
console.log('App Show')
await this.autoLogin()
// if (this.getUserInfoData()) {
// } else {
// console.log('App Show')
await this.autoLogin()
// }
},
onHide: function() {
console.log('App Hide')
},
methods: {
async autoLogin() {
try {
@@ -31,6 +31,14 @@
// 登录失败的处理可以在 wxLogin 中统一处理
// 这里可以添加特殊的错误处理逻辑
}
},
async getUserInfoData() {
try {
await getUserInfo()
} catch (error) {
console.error('获取用户信息失败:', error)
// 获取用户信息失败的处理逻辑
}
}
}
}