🐞 fix(登录页面): 修复登录跳转问题

This commit is contained in:
xuan 2022-09-14 15:52:58 +08:00
parent 6743d6bb21
commit 3b60ea3147
2 changed files with 3 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
dist/
build/
deploy_versions/
.temp/
.rn_temp/

View File

@ -68,7 +68,7 @@ const Login: FC = () => {
setToken(res.data.token)
setUserInfo({ ...res.data })
Taro.redirectTo({
Taro.switchTab({
url: '/pages/index/index',
})
} else {
@ -93,12 +93,7 @@ const Login: FC = () => {
<View className={styles['input-bar']}>
<IconFont name='icon-mima' size={48} color='#999999'></IconFont>
<Divider direction='vertical'></Divider>
<Input
onInput={handleInputPassword}
password={eyesStatus}
className={styles['input-bar--password']}
type='safe-password'
placeholder='请输入密码'></Input>
<Input onInput={handleInputPassword} password={eyesStatus} className={styles['input-bar--password']} type='text' placeholder='请输入密码'></Input>
<View onClick={handlePwdVisible}>
{!eyesStatus ? (
<IconFont name='icon-yanjing' size={48} color='#999999'></IconFont>