antd-admin: roadhog 0.6-beta6 bug

新的commit用了beta6以后又出现了之前的登陆bug

TypeError: Cannot read property 'username' of undefined

os:osx,浏览器:chrome Safari

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 34 (13 by maintainers)

Most upvoted comments

@zuiidea 应该不是这个问题

我试过cookie里有token的情况下是正常的 但是清空cookie了以后,登陆的时候都不会走到你说的那句,在判断cookie是否存在的时候就跳出去了

if (!cookies.token) {
      res.status(200).send({ message: 'Not Login' })
      return
    }