优化登录

This commit is contained in:
zhouyanli
2026-07-21 08:42:43 +08:00
parent 3a00c3dfe0
commit 51b7b5d20a
3 changed files with 7 additions and 3 deletions

View File

@@ -265,6 +265,8 @@ const handleLogin = () => {
const currentVillageId = res.data.currentVillageId || 0
uni.setStorageSync('currentVillageId', currentVillageId)
uni.hideLoading()
// 标记引导页已看过,下次启动跳过引导
uni.setStorageSync('hasShowGuide', true)
uni.showToast({
title: '登录成功',
icon: 'success'

View File

@@ -223,6 +223,8 @@ const handleLogin = () => {
})
permStore.setPerm(res.data.user.permissions)
uni.hideLoading()
// 标记引导页已看过,下次启动跳过引导
uni.setStorageSync('hasShowGuide', true)
if (rememberPwd.value) {
uni.setStorageSync('rememberPhone', phoneNumber.value)
uni.setStorageSync('rememberPassword', password.value)
@@ -242,13 +244,13 @@ const handleLogin = () => {
)
})
} else {
uni.showToast({ title: res.msg, icon: 'error' })
uni.showToast({ title: res.msg, icon: 'none' })
}
})
.catch(err => {
uni.showToast({
title: err.msg,
icon: 'error'
icon: 'none'
})
})
}