This commit is contained in:
张成
2025-08-24 14:54:04 +08:00
parent 74174c504e
commit b92301a887
6 changed files with 49 additions and 33 deletions

View File

@@ -26,14 +26,10 @@ const LoginPage: React.FC = () => {
const response = await wechat_auth_login();
if (response.success) {
save_login_state(response.token!, response.user_info!);
Taro.showToast({
title: '登录成功',
icon: 'success',
duration: 1500
});
setTimeout(() => {
Taro.switchTab({ url: '/pages/index/index' });
}, 1500);
Taro.redirectTo({ url: '/pages/index/index' });
}, 200);
} else {
Taro.showToast({
title: response.message,