hejianhao
2026-06-12 4d7b305fff4498cb18d5df1df27fc4752544e8bf
Merge branch 'feature_v1.0' of http://gitlab.xiaopeng.local:18080/robotaxi1/xp-robotaxi-miniprogram into feature_v1.0
1个文件已修改
11 ■■■■■ 已修改文件
src/pages/not-on-whitelist/index.tsx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/not-on-whitelist/index.tsx
@@ -27,6 +27,17 @@
    if (typeof Taro.hideHomeButton === 'function') {
      Taro.hideHomeButton();
    }
    // 用户在登录页点击「返回 / 暂不登录」回到本页时,登录页会向本页写入 loginSuccess === false。
    // 此时说明用户主动放弃登录,不再重新发起白名单/登录校验,直接回首页,避免循环跳登录页。
    const pages = Taro.getCurrentPages();
    const currentPage: any = pages[pages.length - 1];
    if (currentPage && currentPage.data && currentPage.data.loginSuccess === false) {
      currentPage.setData({ loginSuccess: '' });
      Taro.switchTab({ url: '/pages/home/index' });
      return;
    }
    setShouldRenderImage(false);
    // 1. 检查登录态