Browse Source

fix: 修复开屏关闭逻辑并移除登录失败提示

在SplashScreen组件中添加closeSplash方法调用确保正确关闭开屏
移除登录页面的失败提示以避免重复提示干扰用户体验
main
前端-胡立永 3 days ago
parent
commit
a6c512eaf7
2 changed files with 5 additions and 4 deletions
  1. +1
    -0
      pages/components/SplashScreen.vue
  2. +4
    -4
      subPages/login/login.vue

+ 1
- 0
pages/components/SplashScreen.vue View File

@ -120,6 +120,7 @@ export default {
if (this.hasShownSplash()) { if (this.hasShownSplash()) {
console.log('开屏已显示过,跳过开屏动画') console.log('开屏已显示过,跳过开屏动画')
this.$emit('close') this.$emit('close')
this.closeSplash()
return return
} }


+ 4
- 4
subPages/login/login.vue View File

@ -203,10 +203,10 @@ export default {
} }
} catch (error) { } catch (error) {
console.error('登录失败:', error); console.error('登录失败:', error);
uni.showToast({
title: '登录失败,请重试',
icon: 'none'
});
// uni.showToast({
// title: '',
// icon: 'none'
// });
// #ifdef H5 // #ifdef H5
// H5URL // H5URL


Loading…
Cancel
Save