Ant-design-pro: 🐛[BUG]Logout後還是可以進入頁面

Created on 12 May 2020  ·  1Comment  ·  Source: ant-design/ant-design-pro

🐛 bug 描述

📷 复现步骤


在官方DEMO上, 同樣出現這問題
https://preview.pro.ant.design/dashboard/analysis

按退出登錄按鈕
image

在沒有任何帳號密碼資訊情況下
image

將URL標注的部分刪掉, 即只保留 https://preview.pro.ant.design 這部分, 按回車還是可以進入頁面
image

🏞 期望结果


無法login

💻 复现代码

© 版本信息

  • Ant Design Pro 版本: [e.g. 4.0.0]
  • umi 版本
  • 浏览器环境
  • 开发环境 [e.g. mac OS]

🚑 其他信息

🛑 bug

Most helpful comment

官网的示例浏览只是个Demo

试试在 SecurityLayout 中做判断, SecurityLayout 中 有一个 const isLogin

>All comments

官网的示例浏览只是个Demo

试试在 SecurityLayout 中做判断, SecurityLayout 中 有一个 const isLogin

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yadongxie150 picture yadongxie150  ·  3Comments

zhuanglong picture zhuanglong  ·  3Comments

kaoding picture kaoding  ·  3Comments

gaoqiang19514 picture gaoqiang19514  ·  3Comments

yaoleiroyal picture yaoleiroyal  ·  3Comments