Skip to content

浏览器访问localhost:8080可以重定向到/tab-bar/index但是底部的tabBar却无法加载,另外,浏览器直接访问localhost:8080/tab-bar/index是可以正常加载底部的tabBar的,这个问题请作者修复下 #15

@ynbgit

Description

@ynbgit

如下文件的如下代码,并没有监听pathname变量的变化
https://github.com/hqwlkj/umi-antd-mobile/blob/master/src/layouts/index.tsx

有问题的代码如下

 return (
      <div className="basic-layout-warp">
        <Outlet context={{ prop: 'basic Layout' }} />
      </div>
    );
  }, [props]);

需要改为如下代码

 return (
      <div className="basic-layout-warp">
        <Outlet context={{ prop: 'basic Layout' }} />
      </div>
    );
  }, [props,pathname]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions